Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to handle multiple Entity servers?
Message
De
06/12/2010 13:43:13
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
06/12/2010 12:47:57
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Divers
Thread ID:
01491854
Message ID:
01491872
Vues:
43
>>I work at work with a workstation with a local SQL Server 2008 R2 Express.
>>I work at home with a PC with a local SQL Server 2008 R2 Express.
>>These are development locations.
>>When I go to a production server it will be on my company's server, probably with SQL Server 2008.
>>
>>I could have three different servers with three different instances.
>>
>>I'll be using MM 3.6 or MM 4.0 to create the applications.
>>
>>How do I handle three different servers, with different names using MM 4.0 and the Entity Framework?
>>
>>Do I have to create three different applications?
>>
>>Any ideas about this?
>>
>>Thanks.
>
>Hi Tony,
>
>I'm not sure I understand what you are asking, but connecting to a database is just a matter of setting the proper connection string in your config file. This way, just keep a config file on each PC that connects to the appropriate database.
>
>Of course, I am not doing Entity Framework stuff yet, but I would guess it's pretty much the same

Yes this is correct, and there is also another connection for the Entity Framework probably at the bottom. These can be saved in the confi file differently for each location as Frank says.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform