CoreLoggerExtensions.ReferenceChangeDetected 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
ReferenceChangeDetected事件的記錄。
public static void ReferenceChangeDetected (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.ChangeTracking> diagnostics, Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry internalEntityEntry, Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, object oldValue, object newValue);
public static void ReferenceChangeDetected (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.ChangeTracking> diagnostics, Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry internalEntityEntry, Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, object? oldValue, object? newValue);
static member ReferenceChangeDetected : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.ChangeTracking> * Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry * Microsoft.EntityFrameworkCore.Metadata.INavigation * obj * obj -> unit
<Extension()>
Public Sub ReferenceChangeDetected (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.ChangeTracking), internalEntityEntry As InternalEntityEntry, navigation As INavigation, oldValue As Object, newValue As Object)
參數
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>
要使用的診斷記錄器。
- internalEntityEntry
- Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry
內部實體專案。
- navigation
- INavigation
瀏覽屬性。
- oldValue
- Object
舊值。
- newValue
- Object
新值。