语言

CoreEventId.EnsureCreatedWithTrackedEntitiesWarning 字段

定义

EnsureCreatedAsync(CancellationToken) 是在已跟踪已添加、修改或删除实体的上下文上调用的。 如果由于暂时性故障而发生重试,这些更改将丢失。

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

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

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

字段值

适用于