15 references to AddNpgsqlDbContext
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (12)
AspireEFPostgreSqlExtensionsTests.cs (11)
36
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
52
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql",
74
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: ConfigureDbContextOptionsBuilderForTesting);
94
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: optionsBuilder =>
136
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql", configureDbContextOptions: optionsBuilder =>
182
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql",
216
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql",
248
builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql");
249
builder.
AddNpgsqlDbContext
<TestDbContext2>("npgsql2");
281
var exception = Assert.Throws<InvalidOperationException>(() => builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql"));
304
var exception = Record.Exception(() => builder.
AddNpgsqlDbContext
<TestDbContext>("npgsql"));
ConformanceTests.cs (1)
94
=> builder.
AddNpgsqlDbContext
<TestDbContext>(key ?? "postgres", configure);
CatalogService (1)
Program.cs (1)
7
builder.
AddNpgsqlDbContext
<CatalogDbContext>("catalogdb");
WaitForSandbox.ApiService (1)
Program.cs (1)
11
builder.
AddNpgsqlDbContext
<MyDbContext>("db");
WaitForSandbox.DbSetup (1)
Program.cs (1)
7
builder.
AddNpgsqlDbContext
<MyDbContext>("db");