12 references to WithDatabase
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
220
return builder.
WithDatabase
(databaseName);
Aspire.Hosting.Azure.Tests (7)
AzureBicepResourceTests.cs (4)
251
cosmos.
WithDatabase
("mydatabase", db => db.Containers.Add(new("mycontainer", "mypartitionkeypath")));
362
cosmos.
WithDatabase
("mydatabase", db => db.Containers.Add(new("mycontainer", "mypartitionkeypath")));
483
cosmos.
WithDatabase
("mydatabase", db => db.Containers.Add(new("mycontainer", "mypartitionkeypath")));
594
cosmos.
WithDatabase
("mydatabase", db => db.Containers.Add(new("mycontainer", "mypartitionkeypath")));
AzureContainerAppsTests.cs (2)
699
var db = builder.AddAzureCosmosDB("mydb").
WithDatabase
("db");
1319
var db = builder.AddAzureCosmosDB("mydb").WithAccessKeyAuthentication().
WithDatabase
("db");
AzureCosmosDBEmulatorFunctionalTests.cs (1)
90
var db = cosmos.
WithDatabase
(databaseName)
AzureContainerApps.AppHost (1)
Program.cs (1)
22
.
WithDatabase
("db");
BicepSample.AppHost (1)
Program.cs (1)
45
.
WithDatabase
("db3");
CdkSample.AppHost (1)
Program.cs (1)
12
var cosmosdb = builder.AddAzureCosmosDB("cosmos").
WithDatabase
("cosmosdb");
CosmosEndToEnd.AppHost (1)
Program.cs (1)
8
.
WithDatabase
("db", database => database.Containers.Add(new("entries", "/id")))