8 references to AzureSqlDatabaseResource
Aspire.Hosting.Azure.Sql (5)
AzureSqlExtensions.cs (5)
115
public static IResourceBuilder<
AzureSqlDatabaseResource
> AddDatabase(this IResourceBuilder<AzureSqlServerResource> builder, [ResourceName] string name, string? databaseName = null)
124
var
azureSqlDatabase = new AzureSqlDatabaseResource(name, databaseName, azureResource);
174
.OfType<
AzureSqlDatabaseResource
>()
188
throw new InvalidOperationException($"Could not find a {nameof(
AzureSqlDatabaseResource
)} with name {database.Key}.");
200
private static void RemoveAzureResources(IDistributedApplicationBuilder appBuilder, AzureSqlServerResource azureResource, Dictionary<string,
AzureSqlDatabaseResource
> azureDatabases)
Aspire.Hosting.Azure.Tests (3)
AzureSqlExtensionsTests.cs (3)
142
IResourceBuilder<
AzureSqlDatabaseResource
> db1 = null!;
143
IResourceBuilder<
AzureSqlDatabaseResource
> db2 = null!;
185
IResourceBuilder<
AzureSqlDatabaseResource
>? db = null;