共用方式為


RelationalLoggerExtensions.MigrationsNotFound 方法

定義

MigrationsNotFound事件的記錄。

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

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Migrations>

要使用的診斷記錄器。

migrator
IMigrator

移轉程式。

migrationsAssembly
IMigrationsAssembly

用來儲存移轉的元件。

適用於