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