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> 40Action<MicrosoftEntityFrameworkCoreSqlServerSettings>? configureSettings = null, 48var settings = builder.GetDbContextSettings<TContext, MicrosoftEntityFrameworkCoreSqlServerSettings>( 98Action<MicrosoftEntityFrameworkCoreSqlServerSettings>? configureSettings = null) where TContext : DbContext 102var settings = builder.GetDbContextSettings<TContext, MicrosoftEntityFrameworkCoreSqlServerSettings>( 146throw new InvalidOperationException($"{nameof(MicrosoftEntityFrameworkCoreSqlServerSettings)}.{nameof(MicrosoftEntityFrameworkCoreSqlServerSettings.DisableRetry)} needs to be set when a custom Execution Strategy is configured."); 165throw new InvalidOperationException($"Conflicting values for 'CommandTimeout' were found in {nameof(MicrosoftEntityFrameworkCoreSqlServerSettings)} and set in DbContextOptions<{typeof(TContext).Name}>."); 176private 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)
316MicrosoftEntityFrameworkCoreSqlServerSettings? capturedSettings = null; 344MicrosoftEntityFrameworkCoreSqlServerSettings? capturedSettings = null;
ConformanceTests.cs (5)
16public class ConformanceTests : ConformanceTests<TestDbContext, MicrosoftEntityFrameworkCoreSqlServerSettings>, IClassFixture<SqlServerContainerFixture> 79protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftEntityFrameworkCoreSqlServerSettings>? configure = null, string? key = null) 82protected override void SetHealthCheck(MicrosoftEntityFrameworkCoreSqlServerSettings options, bool enabled) 85protected override void SetTracing(MicrosoftEntityFrameworkCoreSqlServerSettings options, bool enabled) 88protected override void SetMetrics(MicrosoftEntityFrameworkCoreSqlServerSettings options, bool enabled)
EnrichSqlServerTests.cs (1)
24protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftEntityFrameworkCoreSqlServerSettings>? configure = null, string? key = null)