20 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,
48
var
settings = builder.GetDbContextSettings<TContext,
MicrosoftEntityFrameworkCoreSqlServerSettings
>(
98
Action<
MicrosoftEntityFrameworkCoreSqlServerSettings
>? configureSettings = null) where TContext : DbContext
102
var
settings = builder.GetDbContextSettings<TContext,
MicrosoftEntityFrameworkCoreSqlServerSettings
>(
146
throw new InvalidOperationException($"{nameof(
MicrosoftEntityFrameworkCoreSqlServerSettings
)}.{nameof(
MicrosoftEntityFrameworkCoreSqlServerSettings
.DisableRetry)} needs to be set when a custom Execution Strategy is configured.");
165
throw new InvalidOperationException($"Conflicting values for 'CommandTimeout' were found in {nameof(
MicrosoftEntityFrameworkCoreSqlServerSettings
)} and set in DbContextOptions<{typeof(TContext).Name}>.");
176
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 (8)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (2)
316
MicrosoftEntityFrameworkCoreSqlServerSettings
? capturedSettings = null;
344
MicrosoftEntityFrameworkCoreSqlServerSettings
? capturedSettings = null;
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)
24
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
MicrosoftEntityFrameworkCoreSqlServerSettings
>? configure = null, string? key = null)