Sdílet prostřednictvím


MigrationScriptingEventData Konstruktor

Definice

Vytvoří datovou část události.

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)

Parametry

eventDefinition
EventDefinitionBase

Definice události.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegát, který generuje zprávu protokolu pro tuto událost.

migrator
IMigrator

Používá se IMigrator .

migration
Migration

Probíhá Migration zpracování.

fromMigration
String

Migrace, od které skriptování začíná.

toMigration
String

Migrace, ke které se skriptování chystá.

idempotent
Boolean

Označuje, zda je skript idempotentní.

Platí pro