RelationalLoggerExtensions.TriggerOnNonRootTphEntity 方法

定义

TransactionError事件的日志。

public static void TriggerOnNonRootTphEntity (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> diagnostics, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member TriggerOnNonRootTphEntity : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> unit
<Extension()>
Public Sub TriggerOnNonRootTphEntity (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation), entityType As IEntityType)

参数

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的诊断记录器。

entityType
IEntityType

实体类型。

适用于