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