public static async Task SeedAsync(InkettContext inkettContext)
        {
            if (!inkettContext.Styles.Any())
            {
                inkettContext.Styles.AddRange(GetPreconfiguredStyles());

                await inkettContext.SaveChangesAsync();
            }
        }
Beispiel #2
0
 public EfRepository(InkettContext dbContext)
 {
     _dbContext = dbContext;
 }