Connection string for Entity Framework

asp.net c# entity-framework

Accepted Answer

"Data Source=HRVOJE-PC;Initial Catalog=pak_baza;Integrated Security=True"

You should change this portion, which is simply your standard SQL server connection string.HRVOJE-PC is the IP or machine name,pak your database's name. If you wish to replace a database on your local workstation,HRVOJE-PC with localhost .

Check out here for samples of SQL Server connection strings.

9
3/3/2011 4:18:03 AM

Popular Answer

As an alternative, there isDataContext If it's a temporary change and you want to revert to the method you previously used, you might use constructor, which accepts a connection string argument.



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow