共用方式為


CoreLoggerExtensions.LazyLoadOnDisposedContextWarning 方法

定義

public static void LazyLoadOnDisposedContextWarning (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> diagnostics, Microsoft.EntityFrameworkCore.DbContext context, object entityType, string navigationName);
public static void LazyLoadOnDisposedContextWarning (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> diagnostics, Microsoft.EntityFrameworkCore.DbContext? context, object entityType, string navigationName);
static member LazyLoadOnDisposedContextWarning : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> * Microsoft.EntityFrameworkCore.DbContext * obj * string -> unit
<Extension()>
Public Sub LazyLoadOnDisposedContextWarning (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

導覽屬性的名稱。

適用於