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