CoreLoggerExtensions.DetachedLazyLoadingWarning 方法

定义

DetachedLazyLoadingWarning事件的日志。

public static void DetachedLazyLoadingWarning (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> diagnostics, Microsoft.EntityFrameworkCore.DbContext context, object entityType, string navigationName);
public static void DetachedLazyLoadingWarning (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> diagnostics, Microsoft.EntityFrameworkCore.DbContext? context, object entityType, string navigationName);
static member DetachedLazyLoadingWarning : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> * Microsoft.EntityFrameworkCore.DbContext * obj * string -> unit
<Extension()>
Public Sub DetachedLazyLoadingWarning (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Infrastructure), context As DbContext, entityType As Object, navigationName As String)

参数

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

要使用的诊断记录器。

context
DbContext

正在使用的上下文。

entityType
Object

实体类型。

navigationName
String

导航属性的名称。

适用于