19 references to AddSqlServerDbContext
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
83hb.AddSqlServerDbContext<TestDbContext>(tempDb.Resource.Name);
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (12)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (11)
28builder.AddSqlServerDbContext<TestDbContext>("sqlconnection"); 44builder.AddSqlServerDbContext<TestDbContext>("sqlconnection", settings => settings.ConnectionString = ConnectionString); 64builder.AddSqlServerDbContext<TestDbContext>("sqlconnection"); 85builder.AddSqlServerDbContext<TestDbContext>("sqlconnection", configureDbContextOptions: optionsBuilder => 129builder.AddSqlServerDbContext<TestDbContext>("sqlconnection", configureDbContextOptions: optionsBuilder => 174builder.AddSqlServerDbContext<TestDbContext>("sqlconnection", 208builder.AddSqlServerDbContext<TestDbContext>("sqlconnection", 241builder.AddSqlServerDbContext<TestDbContext>("sqlconnection"); 242builder.AddSqlServerDbContext<TestDbContext2>("sqlconnection2"); 274var exception = Assert.Throws<InvalidOperationException>(() => builder.AddSqlServerDbContext<TestDbContext>("sqlconnection")); 297var exception = Record.Exception(() => builder.AddSqlServerDbContext<TestDbContext>("sqlconnection"));
ConformanceTests.cs (1)
80=> builder.AddSqlServerDbContext<TestDbContext>("sqlconnection", configure);
DatabaseMigration.ApiService (1)
Program.cs (1)
10builder.AddSqlServerDbContext<MyDb1Context>("db1", configureDbContextOptions: options =>
DatabaseMigration.MigrationService (1)
Program.cs (1)
15builder.AddSqlServerDbContext<MyDb1Context>("db1");
SqlServerEndToEnd.ApiService (2)
Program.cs (2)
11builder.AddSqlServerDbContext<MyDb1Context>("db1"); 12builder.AddSqlServerDbContext<MyDb2Context>("db2");
SqlServerEndToEnd.DbSetup (2)
Program.cs (2)
8builder.AddSqlServerDbContext<MyDb1Context>("db1"); 9builder.AddSqlServerDbContext<MyDb2Context>("db2");