Поделиться через


RelationalLoggerExtensions.MigrationGeneratingUpScript Метод

Определение

Журналы для MigrationGeneratingUpScript события.

public static void MigrationGeneratingUpScript (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 MigrationGeneratingUpScript (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 MigrationGeneratingUpScript : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> * Microsoft.EntityFrameworkCore.Migrations.IMigrator * Microsoft.EntityFrameworkCore.Migrations.Migration * string * string * bool -> unit
<Extension()>
Public Sub MigrationGeneratingUpScript (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

Указывает, создается ли идемпотентный скрипт.

Применяется к