Table of Contents

Interface IDependentKeyValueFactory

Namespace
Microsoft.EntityFrameworkCore.ChangeTracking
Assembly
Microsoft.EntityFrameworkCore.dll

A factory for key values based on the foreign key values taken from various forms of entity data.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IDependentKeyValueFactory

Remarks

See Implementation of database providers and extensions for more information and examples.

Methods

CreateDependentEquatableKey(IUpdateEntry, bool)

Creates an equatable key object from the foreign key values in the given entry.

object? CreateDependentEquatableKey(IUpdateEntry entry, bool fromOriginalValues = false)

Parameters

entry IUpdateEntry

The entry tracking an entity instance.

fromOriginalValues bool

Whether the original or current values should be used.

Returns

object

The key object.

CreatePrincipalEquatableKey(IUpdateEntry, bool)

Creates an equatable key object from the key values in the given entry.

object CreatePrincipalEquatableKey(IUpdateEntry entry, bool fromOriginalValues = false)

Parameters

entry IUpdateEntry

The entry tracking an entity instance.

fromOriginalValues bool

Whether the original or current values should be used.

Returns

object

The key object.