Monday, 15 April 2013

c# - How to set a new database for Entity Framework Code First project -


I have a code first unit framework project. I use my local ./SQLXPRESS example for this database connection.

I need to move my database to production server What should I do to point out the unit framework in a different SQL Server instance and a different database? Will appear with the same name as the class obtained from / code>.

If you want to override it, you can pass in the connection string name (or connection string). See for more information.

No comments:

Post a Comment