21 references to AddDatabase
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (2)
120var innerDb = innerBuilder.AddDatabase(name, databaseName); 175var innerDb = sqlContainer.AddDatabase(database.Key, database.Value);
Aspire.Hosting.Azure.Tests (2)
AzureBicepResourceTests.cs (2)
1306sql.AddDatabase("db", "dbName"); 1400sql.AddDatabase("db", "dbName");
Aspire.Hosting.SqlServer.Tests (14)
AddSqlServerTests.cs (10)
109.AddDatabase("mydb"); 128var db = sqlServer.AddDatabase("db"); 201db.AddDatabase("db"); 203Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 212.AddDatabase("db"); 215Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 225var db1 = sqlserver1.AddDatabase("db1", "customers1"); 226var db2 = sqlserver1.AddDatabase("db2", "customers2"); 241.AddDatabase("db1", "imports"); 244.AddDatabase("db2", "imports");
SqlServerFunctionalTests.cs (3)
73var tempDb = sqlserver.AddDatabase("tempdb"); 138var masterdb1 = sqlserver1.AddDatabase("master"); 249var 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");