Compartir a través de


CoreLoggerExtensions.LazyLoadOnDisposedContextWarning Método

Definición

Registra el LazyLoadOnDisposedContextWarning evento.

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)

Parámetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

Registrador de diagnóstico que se va a usar.

context
DbContext

Contexto que se usa.

entityType
Object

El tipo de entidad.

navigationName
String

Nombre de la propiedad de navegación.

Se aplica a