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