5 instantiations of PomeloEntityFrameworkCoreMySqlSettings
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (5)
ConfigurationTests.cs (5)
12=> Assert.Null(new PomeloEntityFrameworkCoreMySqlSettings().ConnectionString); 16=> Assert.False(new PomeloEntityFrameworkCoreMySqlSettings().DisableHealthChecks); 20=> Assert.False(new PomeloEntityFrameworkCoreMySqlSettings().DisableTracing); 24=> Assert.False(new PomeloEntityFrameworkCoreMySqlSettings().DisableMetrics); 28=> Assert.False(new PomeloEntityFrameworkCoreMySqlSettings().DisableRetry);
18 references to PomeloEntityFrameworkCoreMySqlSettings
Aspire.Pomelo.EntityFrameworkCore.MySql (12)
AspireEFMySqlExtensions.cs (11)
48/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="PomeloEntityFrameworkCoreMySqlSettings.ConnectionString"/> is not provided.</exception> 52Action<PomeloEntityFrameworkCoreMySqlSettings>? configureSettings = null, 59var settings = builder.GetDbContextSettings<TContext, PomeloEntityFrameworkCoreMySqlSettings>( 143Action<PomeloEntityFrameworkCoreMySqlSettings>? configureSettings = null) where TContext : DbContext 147var settings = builder.GetDbContextSettings<TContext, PomeloEntityFrameworkCoreMySqlSettings>( 199throw new InvalidOperationException($"{nameof(PomeloEntityFrameworkCoreMySqlSettings)}.{nameof(PomeloEntityFrameworkCoreMySqlSettings.DisableRetry)} needs to be set when a custom Execution Strategy is configured."); 218throw new InvalidOperationException($"Conflicting values for 'CommandTimeout' were found in {nameof(PomeloEntityFrameworkCoreMySqlSettings)} and set in DbContextOptions<{typeof(TContext).Name}>."); 231private static void ConfigureInstrumentation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties)] TContext>(IHostApplicationBuilder builder, PomeloEntityFrameworkCoreMySqlSettings settings) where TContext : DbContext
AssemblyInfo.cs (1)
7[assembly: ConfigurationSchema("Aspire:Pomelo:EntityFrameworkCore:MySql", typeof(PomeloEntityFrameworkCoreMySqlSettings))]
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (6)
ConformanceTests.cs (5)
17public class ConformanceTests : ConformanceTests<TestDbContext, PomeloEntityFrameworkCoreMySqlSettings>, IClassFixture<MySqlContainerFixture> 90protected override void RegisterComponent(HostApplicationBuilder builder, Action<PomeloEntityFrameworkCoreMySqlSettings>? configure = null, string? key = null) 93protected override void SetHealthCheck(PomeloEntityFrameworkCoreMySqlSettings options, bool enabled) 96protected override void SetTracing(PomeloEntityFrameworkCoreMySqlSettings options, bool enabled) 99protected override void SetMetrics(PomeloEntityFrameworkCoreMySqlSettings options, bool enabled)
EnrichMySqlTests.cs (1)
30protected override void RegisterComponent(HostApplicationBuilder builder, Action<PomeloEntityFrameworkCoreMySqlSettings>? configure = null, string? key = null)