Created
June 16, 2015 14:02
-
-
Save szul/fd5484e3e7c97283f29f to your computer and use it in GitHub Desktop.
Turning off code first migrations in ASP.NET MVC and Web API for when legacy databases are used
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void Application_Start() | |
{ | |
//Where DatabaseContext is the class name of your database context for MVC/Web API | |
Database.SetInitializer<DatabaseContext>(null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment