예제 #1
0
        public static async Task SeedAsync(InkettContext inkettContext)
        {
            if (!inkettContext.Styles.Any())
            {
                inkettContext.Styles.AddRange(GetPreconfiguredStyles());

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