Compartir a través de


ContextInitializedEventData Constructor

Definición

Construye la carga del evento.

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)

Parámetros

eventDefinition
EventDefinitionBase

Definición del evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegado que genera un mensaje de registro para este evento.

context
DbContext

que DbContext se inicializa.

contextOptions
DbContextOptions

que DbContextOptions se está usando.

Se aplica a