Freigeben über


CoreLoggerExtensions.ContextInitialized Methode

Definition

Protokolle für das ContextInitialized Ereignis.

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)

Parameter

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

Die zu verwendende Diagnose-Protokollierung.

context
DbContext

Der verwendete Kontext.

contextOptions
DbContextOptions

Die verwendeten Kontextoptionen.

Gilt für: