18 references to MicrosoftEntityFrameworkCoreSqlServerSettings
Aspire.Microsoft.EntityFrameworkCore.SqlServer (12)
AspireSqlServerEFCoreSqlClientExtensions.cs (11)
36
/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="
MicrosoftEntityFrameworkCoreSqlServerSettings
.ConnectionString"/> is not provided.</exception>
40
Action<
MicrosoftEntityFrameworkCoreSqlServerSettings
>? configureSettings = null,
47
var
settings = builder.GetDbContextSettings<TContext,
MicrosoftEntityFrameworkCoreSqlServerSettings
>(
96
Action<
MicrosoftEntityFrameworkCoreSqlServerSettings
>? configureSettings = null) where TContext : DbContext
100
var
settings = builder.GetDbContextSettings<TContext,
MicrosoftEntityFrameworkCoreSqlServerSettings
>(
143
throw new InvalidOperationException($"{nameof(
MicrosoftEntityFrameworkCoreSqlServerSettings
)}.{nameof(
MicrosoftEntityFrameworkCoreSqlServerSettings
.DisableRetry)} needs to be set when a custom Execution Strategy is configured.");
162
throw new InvalidOperationException($"Conflicting values for 'CommandTimeout' were found in {nameof(
MicrosoftEntityFrameworkCoreSqlServerSettings
)} and set in DbContextOptions<{typeof(TContext).Name}>.");
173
private static void ConfigureInstrumentation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties)] TContext>(IHostApplicationBuilder builder,
MicrosoftEntityFrameworkCoreSqlServerSettings
settings) where TContext : DbContext
AssemblyInfo.cs (1)
7
[assembly: ConfigurationSchema("Aspire:Microsoft:EntityFrameworkCore:SqlServer", typeof(
MicrosoftEntityFrameworkCoreSqlServerSettings
))]
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (6)
ConformanceTests.cs (5)
16
public class ConformanceTests : ConformanceTests<TestDbContext,
MicrosoftEntityFrameworkCoreSqlServerSettings
>, IClassFixture<SqlServerContainerFixture>
79
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
MicrosoftEntityFrameworkCoreSqlServerSettings
>? configure = null, string? key = null)
82
protected override void SetHealthCheck(
MicrosoftEntityFrameworkCoreSqlServerSettings
options, bool enabled)
85
protected override void SetTracing(
MicrosoftEntityFrameworkCoreSqlServerSettings
options, bool enabled)
88
protected override void SetMetrics(
MicrosoftEntityFrameworkCoreSqlServerSettings
options, bool enabled)
EnrichSqlServerTests.cs (1)
25
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
MicrosoftEntityFrameworkCoreSqlServerSettings
>? configure = null, string? key = null)