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