AspireEFMySqlExtensions.EnrichMySqlDbContext<TContext> Method

Definition

Configures retries, health check, logging and telemetry for the DbContext.

public static void EnrichMySqlDbContext<TContext> (this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, Action<Aspire.Pomelo.EntityFrameworkCore.MySql.PomeloEntityFrameworkCoreMySqlSettings>? configureSettings = default) where TContext : Microsoft.EntityFrameworkCore.DbContext;
static member EnrichMySqlDbContext : Microsoft.Extensions.Hosting.IHostApplicationBuilder * Action<Aspire.Pomelo.EntityFrameworkCore.MySql.PomeloEntityFrameworkCoreMySqlSettings> -> unit (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)
<Extension()>
Public Sub EnrichMySqlDbContext(Of TContext As DbContext) (builder As IHostApplicationBuilder, Optional configureSettings As Action(Of PomeloEntityFrameworkCoreMySqlSettings) = Nothing)

Type Parameters

TContext

Parameters

Exceptions

Thrown if mandatory builder is null.

Thrown when mandatory DbContext is not registered in DI.

Applies to