10 references to CatalogDbContext
CatalogDb (10)
CatalogDbInitializer.cs (4)
16
var
dbContext = scope.ServiceProvider.GetRequiredService<
CatalogDbContext
>();
21
private async Task InitializeDatabaseAsync(
CatalogDbContext
dbContext, CancellationToken cancellationToken)
36
private 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)
8
public class CatalogDbContext(DbContextOptions<
CatalogDbContext
> options) : DbContext(options)
12
private static readonly Func<
CatalogDbContext
, int?, int?, int?, int, IAsyncEnumerable<CatalogItem>> s_getCatalogItemsQuery =
13
EF.CompileAsyncQuery((
CatalogDbContext
context, int? catalogBrandId, int? before, int? after, int pageSize) =>
Program.cs (1)
6
builder.AddNpgsqlDbContext<
CatalogDbContext
>("catalogdb");