语言

CoreEventId.LazyLoadOnDisposedContextWarning 字段

定义

在释放 DbContext 后,尝试延迟加载属性。

public static readonly Microsoft.Extensions.Logging.EventId LazyLoadOnDisposedContextWarning;
 staticval mutable LazyLoadOnDisposedContextWarning : Microsoft.Extensions.Logging.EventId
Public Shared ReadOnly LazyLoadOnDisposedContextWarning As EventId 

字段值

注解

此事件位于类别中 DbLoggerCategory.Infrastructure 。

此事件在与 a DiagnosticSource. 一起使用时使用LazyLoadingEventData有效负载。

适用于