private static Qux1 NewQux(string name, PersistenceDbContext context) { var q = new Qux1 { Name = name }; context.Quxes.Add(q); return(q); }
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); }