public static void Seed(TestDb context, string relativeFolder) { Seeder.Execute("Races", () => { var intialData = Seeder.GetJsonStubs <Race>("races", relativeFolder); context.Races.AddRange(intialData); context.DoSave("Race"); }); }
public static void Seed(TestDb context, string relativeFolder) { Seeder.Execute("Bets", () => { var intialData = Seeder.GetJsonStubs <Bet>("bets", relativeFolder); context.Bets.AddRange(intialData); context.DoSave("Bet"); }); }
public static void Seed(TestDb context, string relativeFolder) { Seeder.Execute("Customers", () => { var intialData = Seeder.GetJsonStubs <Customer>("customers", relativeFolder); context.Customers.AddRange(intialData); context.DoSave("Customer"); }); }