Compartir a través de


CoreLoggerExtensions.ContextInitialized Método

Definición

Registra el ContextInitialized evento.

public static void ContextInitialized (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> diagnostics, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.DbContextOptions contextOptions);
static member ContextInitialized : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.DbContextOptions -> unit
<Extension()>
Public Sub ContextInitialized (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Infrastructure), context As DbContext, contextOptions As DbContextOptions)

Parámetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

Registrador de diagnóstico que se va a usar.

context
DbContext

Contexto que se usa.

contextOptions
DbContextOptions

Opciones de contexto que se usan.

Se aplica a