Skip to content
Marcin Sulecki edited this page Apr 5, 2017 · 1 revision

Inicjalizacja danych

Migrations/Configuration.c

protected override void Seed(MyContext context)
       {
           
               context.Customers.AddOrUpdate(
                 p => p.LastName,
                 new Customer { LastName = "Prince" },
                 new Customer { LastName = "Jackson" }
                 
               );
           
       }
Clone this wiki locally