Udostępnij za pośrednictwem


ContextInitializedEventData Konstruktor

Definicja

Konstruuje ładunek zdarzenia.

public ContextInitializedEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.DbContextOptions contextOptions);
new Microsoft.EntityFrameworkCore.Diagnostics.ContextInitializedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.DbContextOptions -> Microsoft.EntityFrameworkCore.Diagnostics.ContextInitializedEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), context As DbContext, contextOptions As DbContextOptions)

Parametry

eventDefinition
EventDefinitionBase

Definicja zdarzenia.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegat, który generuje komunikat dziennika dla tego zdarzenia.

context
DbContext

Jest DbContext to zainicjowane.

contextOptions
DbContextOptions

Używane DbContextOptions .

Dotyczy