Пример #1
0
        protected override void Seed(PlayNGo.Data.DataContext 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.

            var persons = SeederHelper.CreateInitialListOfPerson();

            context.Persons.AddRange(persons);
        }