Esempio n. 1
0
 static void Main(string[] args)
 {
     using (var db = new MyAppDbContext())
     {
         BasicSeeder.Run(db);
     }
 }
        protected override void Seed(MyApp.SqlServerModel.MyAppDbContext 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.
            BasicSeeder.Run(context);
        }