Thursday, May 19, 2011

Change Database Connection for EF Model in VS

Q) How do I connect my EF Entity Model to a different database?


When you add an entity Model to your project a db connection wizard is presented where you specify the connection details. If you want to change the database name or server at some point you can edit the connection string in the app.config file for the project containing your entity model.

No comments:

Post a Comment

ASP.Net 5 - Simple Html Page App

Motivation As part of a recent undertaking to learn Angular JS I started using the beta version of ASP.Net 5.   I figured why not introdu...