public static void Initialize() { Database.SetInitializer(new MigrateDatabaseToLatestVersion <ForumDbContext, Configuration>()); // Only when creating db ForumDbContext.Create().Database.Initialize(true); }
public static void Initialize() { Database.SetInitializer(new MigrateDatabaseToLatestVersion <ForumDbContext, Configuration>()); // Only when creating db ForumDbContext.Create().Database.Initialize(true); }