다음을 통해 공유


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

멱등성 스크립트가 생성되고 있는지 여부를 나타냅니다.

적용 대상