Пример #1
0
        private static Qux1 NewQux(string name, PersistenceDbContext context)
        {
            var q = new Qux1 {
                Name = name
            };

            context.Quxes.Add(q);
            return(q);
        }
Пример #2
0
        public static void Seed(PersistenceDbContext context)
        {
            Qux1 q1 = NewQux("Qux 1", context);

            context.SaveChanges();
        }
 protected override void Seed(PersistenceDbContext context)
 {
     Qux1 q1 = NewQux("Qux 1", context);
 }