共用方式為


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

實體類型。

適用於