다음을 통해 공유


CoreLoggerExtensions.ForeignKeyChangeDetected 메서드

정의

이벤트에 대한 로그입니다 ForeignKeyChangeDetected .

public static void ForeignKeyChangeDetected (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.ChangeTracking> diagnostics, Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry internalEntityEntry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, object oldValue, object newValue);
public static void ForeignKeyChangeDetected (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.ChangeTracking> diagnostics, Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry internalEntityEntry, Microsoft.EntityFrameworkCore.Metadata.IProperty property, object? oldValue, object? newValue);
static member ForeignKeyChangeDetected : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.ChangeTracking> * Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry * Microsoft.EntityFrameworkCore.Metadata.IProperty * obj * obj -> unit
<Extension()>
Public Sub ForeignKeyChangeDetected (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.ChangeTracking), internalEntityEntry As InternalEntityEntry, property As IProperty, oldValue As Object, newValue As Object)

매개 변수

diagnostics
IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>

사용할 진단 로거입니다.

internalEntityEntry
Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry

내부 엔터티 항목입니다.

property
IProperty

속성입니다.

oldValue
Object

이전 값입니다.

newValue
Object

새 값입니다.

적용 대상