internal sealed class Configuration : DbMigrationsConfiguration<ApplicationDbContext> { public Configuration() { AutomaticMigrationsEnabled = false; // AutomaticMigrationDataLossAllowed = false; } protected override void Seed(ApplicationDbContext context) { // This method will be called after migrating to the latest version. } }
public ApplicationDbContext() : base("DefaultConnection" ) { Database.SetInitializer<applicationdbcontext>(new MigrateDatabaseToLatestVersion<applicationdbcontext,>()); } What I have tried: I have try update database that is already but I can do it.</applicationdbcontext>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)