Aracılığıyla paylaş


RelationalLoggerExtensions.MigrationGeneratingUpScript Yöntem

Tanım

Olay için MigrationGeneratingUpScript günlükler.

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)

Parametreler

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Migrations>

Kullanılacak tanılama günlükçü.

migrator
IMigrator

Geçişçı.

migration
Migration

Geçiş.

fromMigration
String

Başlangıç geçiş adı.

toMigration
String

Son geçiş adı.

idempotent
Boolean

Bir kez etkili bir betik oluşturulup oluşturulmadığını gösterir.

Şunlara uygulanır