Compartir a través de


RelationalLoggerExtensions.MigrationGeneratingDownScript Método

Definición

Registra el MigrationGeneratingDownScript evento.

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)

Parámetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Migrations>

Registrador de diagnóstico que se va a usar.

migrator
IMigrator

El migrador.

migration
Migration

Migración.

fromMigration
String

Nombre de la migración inicial.

toMigration
String

Nombre final de la migración.

idempotent
Boolean

Indica si se está generando o no un script idempotente.

Se aplica a