Just go to your DbContext file and paste this.
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
Database.SetInitializer<UniversityWebContext>(null);
base.OnModelCreating(modelBuilder);
}
Just change the name of the project . Here my project name is "UniversityWebContext".
Thanks for sharing about disable Migrations in MVC Visual studio.
ReplyDeleteVB.Net Migration