8 references to AzureSqlDatabaseResource
Aspire.Hosting.Azure.Sql (5)
AzureSqlExtensions.cs (5)
99
public static IResourceBuilder<
AzureSqlDatabaseResource
> AddDatabase(this IResourceBuilder<AzureSqlServerResource> builder, [ResourceName] string name, string? databaseName = null)
108
var
azureSqlDatabase = new AzureSqlDatabaseResource(name, databaseName, azureResource);
158
.OfType<
AzureSqlDatabaseResource
>()
172
throw new InvalidOperationException($"Could not find a {nameof(
AzureSqlDatabaseResource
)} with name {database.Key}.");
184
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;