23 references to AddNpgsqlDbContext
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
AspireAzureEFPostgreSqlExtensions.cs (1)
57
builder.
AddNpgsqlDbContext
<TContext>(connectionName, settings => azureSettings = ConfigureSettings(configureSettings, settings), dbContextOptionsBuilder =>
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (17)
AspireEFPostgreSqlExtensionsTests.cs (14)
37
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
53
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql",
75
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
95
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: optionsBuilder =>
137
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: optionsBuilder =>
183
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql",
217
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql",
249
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql");
250
builder.
AddNpgsqlDbContext
<TestDbContext2>("npgsql2");
282
var exception = Assert.Throws<InvalidOperationException>(() => builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql"));
305
var exception = Record.Exception(() => builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql"));
325
builder.
AddNpgsqlDbContext
<TestDbContext>(connectionName);
328
builder.
AddNpgsqlDbContext
<TestDbContext>(connectionName, settings =>
357
builder.
AddNpgsqlDbContext
<TestDbContext>(connectionName, settings =>
ConformanceTests.cs (1)
97
=> builder.
AddNpgsqlDbContext
<TestDbContext>(key ?? "postgres", configure);
NpgsqlEntityFrameworkCorePostgreSQLPublicApiTests.cs (2)
18
var action = () => builder.
AddNpgsqlDbContext
<DbContext>(connectionName);
32
var action = () => builder.
AddNpgsqlDbContext
<DbContext>(connectionName);
CatalogService (1)
Program.cs (1)
7
builder.
AddNpgsqlDbContext
<CatalogDbContext>("catalogdb");
Publishers.ApiService (1)
Program.cs (1)
11
builder.
AddNpgsqlDbContext
<MyDbContext>("db");
Publishers.DbSetup (1)
Program.cs (1)
7
builder.
AddNpgsqlDbContext
<MyDbContext>("db");
WaitForSandbox.ApiService (1)
Program.cs (1)
11
builder.
AddNpgsqlDbContext
<MyDbContext>("db");
WaitForSandbox.DbSetup (1)
Program.cs (1)
7
builder.
AddNpgsqlDbContext
<MyDbContext>("db");