RelationalLoggerExtensions.MigrationGeneratingDownScript 方法

定义

MigrationGeneratingDownScript事件的日志。

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)

参数

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Migrations>

要使用的诊断记录器。

migrator
IMigrator

迁移者。

migration
Migration

迁移。

fromMigration
String

起始迁移名称。

toMigration
String

结束迁移名称。

idempotent
Boolean

指示是否正在生成幂等脚本。

适用于