10 references to CatalogDbContext
CatalogDb (10)
CatalogDbInitializer.cs (4)
16var dbContext = scope.ServiceProvider.GetRequiredService<CatalogDbContext>(); 21private async Task InitializeDatabaseAsync(CatalogDbContext dbContext, CancellationToken cancellationToken) 36private async Task SeedAsync(CatalogDbContext dbContext, CancellationToken cancellationToken)
Migrations\20230517065317_Initial.Designer.cs (1)
13[DbContext(typeof(CatalogDbContext))]
Migrations\CatalogDbContextModelSnapshot.cs (1)
12[DbContext(typeof(CatalogDbContext))]
Model.cs (3)
8public class CatalogDbContext(DbContextOptions<CatalogDbContext> options) : DbContext(options) 12private static readonly Func<CatalogDbContext, int?, int?, int?, int, IAsyncEnumerable<CatalogItem>> s_getCatalogItemsQuery = 13EF.CompileAsyncQuery((CatalogDbContext context, int? catalogBrandId, int? before, int? after, int pageSize) =>
Program.cs (1)
6builder.AddNpgsqlDbContext<CatalogDbContext>("catalogdb");