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);
18 references to NpgsqlEntityFrameworkCorePostgreSQLSettings
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, 55var settings = builder.GetDbContextSettings<TContext, NpgsqlEntityFrameworkCorePostgreSQLSettings>( 107Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configureSettings = null) where TContext : DbContext 111var settings = builder.GetDbContextSettings<TContext, NpgsqlEntityFrameworkCorePostgreSQLSettings>( 157throw new InvalidOperationException($"{nameof(NpgsqlEntityFrameworkCorePostgreSQLSettings)}.{nameof(NpgsqlEntityFrameworkCorePostgreSQLSettings.DisableRetry)} needs to be set when a custom Execution Strategy is configured."); 176throw new InvalidOperationException($"Conflicting values for 'CommandTimeout' were found in {nameof(NpgsqlEntityFrameworkCorePostgreSQLSettings)} and set in DbContextOptions<{typeof(TContext).Name}>."); 188private 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 (6)
ConformanceTests.cs (5)
16public class ConformanceTests : ConformanceTests<TestDbContext, NpgsqlEntityFrameworkCorePostgreSQLSettings>, IClassFixture<PostgreSQLContainerFixture> 93protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configure = null, string? key = null) 96protected override void SetHealthCheck(NpgsqlEntityFrameworkCorePostgreSQLSettings options, bool enabled) 99protected override void SetTracing(NpgsqlEntityFrameworkCorePostgreSQLSettings options, bool enabled) 102protected override void SetMetrics(NpgsqlEntityFrameworkCorePostgreSQLSettings options, bool enabled)
EnrichNpgsqlTests.cs (1)
26protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configure = null, string? key = null)