Sdílet prostřednictvím


RelationalLoggerExtensions.MigrationGeneratingDownScript Metoda

Definice

Protokoly pro MigrationGeneratingDownScript událost.

public static void MigrationGeneratingDownScript (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> diagnostics, Microsoft.EntityFrameworkCore.Migrations.IMigrator migrator, Microsoft.EntityFrameworkCore.Migrations.Migration migration, string fromMigration, string toMigration, bool idempotent);
public static void MigrationGeneratingDownScript (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> diagnostics, Microsoft.EntityFrameworkCore.Migrations.IMigrator migrator, Microsoft.EntityFrameworkCore.Migrations.Migration migration, string? fromMigration, string? toMigration, bool idempotent);
static member MigrationGeneratingDownScript : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> * Microsoft.EntityFrameworkCore.Migrations.IMigrator * Microsoft.EntityFrameworkCore.Migrations.Migration * string * string * bool -> unit
<Extension()>
Public Sub MigrationGeneratingDownScript (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Migrations), migrator As IMigrator, migration As Migration, fromMigration As String, toMigration As String, idempotent As Boolean)

Parametry

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Migrations>

Diagnostický protokolovací nástroj, který se má použít.

migrator
IMigrator

Stěhovavý.

migration
Migration

Migrace.

fromMigration
String

Název počáteční migrace.

toMigration
String

Název koncové migrace.

idempotent
Boolean

Určuje, zda se generuje idempotentní skript.

Platí pro