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