Partager via


MigrationScriptingEventData Constructeur

Définition

Construit la charge utile d’événement.

public MigrationScriptingEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrator migrator, Microsoft.EntityFrameworkCore.Migrations.Migration migration, string fromMigration, string toMigration, bool idempotent);
public MigrationScriptingEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrator migrator, Microsoft.EntityFrameworkCore.Migrations.Migration migration, string? fromMigration, string? toMigration, bool idempotent);
new Microsoft.EntityFrameworkCore.Diagnostics.MigrationScriptingEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * Microsoft.EntityFrameworkCore.Migrations.IMigrator * Microsoft.EntityFrameworkCore.Migrations.Migration * string * string * bool -> Microsoft.EntityFrameworkCore.Diagnostics.MigrationScriptingEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), migrator As IMigrator, migration As Migration, fromMigration As String, toMigration As String, idempotent As Boolean)

Paramètres

eventDefinition
EventDefinitionBase

Définition d’événement.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Délégué qui génère un message de journal pour cet événement.

migrator
IMigrator

IMigrator utilisé.

migration
Migration

en Migration cours de traitement.

fromMigration
String

Migration à partir de laquelle les scripts commencent.

toMigration
String

Migration que va effectuer le script.

idempotent
Boolean

Indique si le script est idempotent ou non.

S’applique à