1 type derived from NpgsqlEntityFrameworkCorePostgreSQLSettings
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
AzureNpgsqlEntityFrameworkCorePostgreSQLSettings.cs (1)
12public sealed class AzureNpgsqlEntityFrameworkCorePostgreSQLSettings : NpgsqlEntityFrameworkCorePostgreSQLSettings
5 instantiations of NpgsqlEntityFrameworkCorePostgreSQLSettings
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (5)
ConfigurationTests.cs (5)
12=> Assert.Null(new NpgsqlEntityFrameworkCorePostgreSQLSettings().ConnectionString); 16=> Assert.False(new NpgsqlEntityFrameworkCorePostgreSQLSettings().DisableHealthChecks); 20=> Assert.False(new NpgsqlEntityFrameworkCorePostgreSQLSettings().DisableTracing); 24=> Assert.False(new NpgsqlEntityFrameworkCorePostgreSQLSettings().DisableMetrics); 28=> Assert.False(new NpgsqlEntityFrameworkCorePostgreSQLSettings().DisableRetry);
24 references to NpgsqlEntityFrameworkCorePostgreSQLSettings
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (4)
AspireAzureEFPostgreSqlExtensions.cs (4)
45/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="NpgsqlEntityFrameworkCorePostgreSQLSettings.ConnectionString"/> is not provided.</exception> 96private static AzureNpgsqlEntityFrameworkCorePostgreSQLSettings ConfigureSettings(Action<AzureNpgsqlEntityFrameworkCorePostgreSQLSettings>? userConfigureSettings, NpgsqlEntityFrameworkCorePostgreSQLSettings settings) 112private static void CopySettings(NpgsqlEntityFrameworkCorePostgreSQLSettings source, NpgsqlEntityFrameworkCorePostgreSQLSettings destination)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (12)
AspireEFPostgreSqlExtensions.cs (11)
44/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="NpgsqlEntityFrameworkCorePostgreSQLSettings.ConnectionString"/> is not provided.</exception> 48Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configureSettings = null, 56var settings = builder.GetDbContextSettings<TContext, NpgsqlEntityFrameworkCorePostgreSQLSettings>( 109Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configureSettings = null) 114var settings = builder.GetDbContextSettings<TContext, NpgsqlEntityFrameworkCorePostgreSQLSettings>( 161throw new InvalidOperationException($"{nameof(NpgsqlEntityFrameworkCorePostgreSQLSettings)}.{nameof(NpgsqlEntityFrameworkCorePostgreSQLSettings.DisableRetry)} needs to be set when a custom Execution Strategy is configured."); 180throw new InvalidOperationException($"Conflicting values for 'CommandTimeout' were found in {nameof(NpgsqlEntityFrameworkCorePostgreSQLSettings)} and set in DbContextOptions<{typeof(TContext).Name}>."); 192private static void ConfigureInstrumentation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties)] TContext>(IHostApplicationBuilder builder, NpgsqlEntityFrameworkCorePostgreSQLSettings settings) where TContext : DbContext
AssemblyInfo.cs (1)
7[assembly: ConfigurationSchema("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL", typeof(NpgsqlEntityFrameworkCorePostgreSQLSettings))]
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (8)
AspireEFPostgreSqlExtensionsTests.cs (2)
327NpgsqlEntityFrameworkCorePostgreSQLSettings? capturedSettings = null; 356NpgsqlEntityFrameworkCorePostgreSQLSettings? capturedSettings = null;
ConformanceTests.cs (5)
16public class ConformanceTests : ConformanceTests<TestDbContext, NpgsqlEntityFrameworkCorePostgreSQLSettings>, IClassFixture<PostgreSQLContainerFixture> 96protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configure = null, string? key = null) 99protected override void SetHealthCheck(NpgsqlEntityFrameworkCorePostgreSQLSettings options, bool enabled) 102protected override void SetTracing(NpgsqlEntityFrameworkCorePostgreSQLSettings options, bool enabled) 105protected override void SetMetrics(NpgsqlEntityFrameworkCorePostgreSQLSettings options, bool enabled)
EnrichNpgsqlTests.cs (1)
28protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configure = null, string? key = null)