CoreLoggerExtensions.OldModelVersionWarning 方法

定义

OldModelVersionWarning事件的日志。

public static void OldModelVersionWarning (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> diagnostics, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.DbContextOptions contextOptions);
static member OldModelVersionWarning : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.DbContextOptions -> unit
<Extension()>
Public Sub OldModelVersionWarning (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Infrastructure), context As DbContext, contextOptions As DbContextOptions)

参数

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

要使用的诊断记录器。

context
DbContext

正在使用的上下文。

contextOptions
DbContextOptions

使用的上下文选项。

适用于