CoreLoggerExtensions.ReferenceChangeDetected Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Logs for the ReferenceChangeDetected event.
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)
Parameters
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>
The diagnostics logger to use.
- internalEntityEntry
- Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry
The internal entity entry.
- navigation
- INavigation
The navigation property.
- oldValue
- Object
The old value.
- newValue
- Object
The new value.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework