private async Task SeedData(AuctionDbContext context) { context.Users.Add(SeedUser()); context.AddRange(GetDummyData()); context.AddRange(GetDummyReceipts()); await context.SaveChangesAsync(); }
private async Task SeedData(AuctionDbContext context) { context.Cities.Add(GetDummyCity()); context.AuctionHouses.Add(GetDummyAuctionHouse()); context.AddRange(GetDummyData()); await context.SaveChangesAsync(); }
private async Task SeedData(AuctionDbContext context) { context.AddRange(GetDummyData()); await context.SaveChangesAsync(); }