static void Main(string[] args) { using (ApplicationDbContext context = new ApplicationDbContext()) { MySeed.Seed(context); } }
protected override void Seed(CrowdDj.DAL.ApplicationDbContext context) { MySeed.Seed(context); // This method will be called after migrating to the latest version. // You can use the DbSet<T>.AddOrUpdate() helper extension method // to avoid creating duplicate seed data. }