CoreLoggerExtensions.StateChangedSensitive 方法

定义

StateChanged事件的日志。

public static void StateChangedSensitive (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.ChangeTracking> diagnostics, Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry internalEntityEntry, Microsoft.EntityFrameworkCore.EntityState oldState, Microsoft.EntityFrameworkCore.EntityState newState);
static member StateChangedSensitive : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.ChangeTracking> * Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry * Microsoft.EntityFrameworkCore.EntityState * Microsoft.EntityFrameworkCore.EntityState -> unit
<Extension()>
Public Sub StateChangedSensitive (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.ChangeTracking), internalEntityEntry As InternalEntityEntry, oldState As EntityState, newState As EntityState)

参数

diagnostics
IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>

要使用的诊断记录器。

internalEntityEntry
Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry

内部实体条目。

oldState
EntityState

旧状态。

newState
EntityState

新状态。

适用于