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