共用方式為


RelationalLoggerExtensions.MigrationsNotApplied 方法

定義

MigrationsNotApplied事件的記錄。

public static void MigrationsNotApplied (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> diagnostics, Microsoft.EntityFrameworkCore.Migrations.IMigrator migrator);
static member MigrationsNotApplied : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> * Microsoft.EntityFrameworkCore.Migrations.IMigrator -> unit
<Extension()>
Public Sub MigrationsNotApplied (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Migrations), migrator As IMigrator)

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Migrations>

要使用的診斷記錄器。

migrator
IMigrator

移轉程式。

適用於