21 references to AddDatabase
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (2)
136var innerDb = innerBuilder.AddDatabase(name, databaseName); 191var innerDb = sqlContainer.AddDatabase(database.Key, database.Value);
Aspire.Hosting.Azure.Tests (2)
AzureBicepResourceTests.cs (2)
1104sql.AddDatabase("db", "dbName"); 1198sql.AddDatabase("db", "dbName");
Aspire.Hosting.SqlServer.Tests (14)
AddSqlServerTests.cs (10)
111.AddDatabase("mydb"); 130var db = sqlServer.AddDatabase("db"); 203db.AddDatabase("db"); 205Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 214.AddDatabase("db"); 217Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 227var db1 = sqlserver1.AddDatabase("db1", "customers1"); 228var db2 = sqlserver1.AddDatabase("db2", "customers2"); 243.AddDatabase("db1", "imports"); 246.AddDatabase("db2", "imports");
SqlServerFunctionalTests.cs (3)
73var tempDb = sqlserver.AddDatabase("tempdb"); 138var masterdb1 = sqlserver1.AddDatabase("master"); 247var masterdb2 = sqlserver2.AddDatabase("master");
SqlServerPublicApiTests.cs (1)
42var action = () => builder.AddDatabase(name);
DatabaseMigration.AppHost (1)
Program.cs (1)
6var db1 = builder.AddSqlServer("sql1").AddDatabase("db1");
ParameterEndToEnd.AppHost (1)
Program.cs (1)
20.AddDatabase("db");
SqlServerEndToEnd.AppHost (1)
Program.cs (1)
14var db2 = sql2.AddDatabase("db2");