Compartilhar via


CoreLoggerExtensions.ContextInitialized Método

Definição

Logs do 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>

O agente diagnóstico a ser usado.

context
DbContext

O contexto que está sendo usado.

contextOptions
DbContextOptions

As opções de contexto que estão sendo usadas.

Aplica-se a