RelationalLoggerExtensions.MigrationsNotFound 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
存储迁移的程序集。