Interface IPrincipalKeyValueFactory
- Namespace
- Microsoft.EntityFrameworkCore.ChangeTracking
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents a factory for key values based on the primary/principal 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 IPrincipalKeyValueFactory
Remarks
See Implementation of database providers and extensions for more information and examples.
Methods
CreateEquatableKey(IUpdateEntry, bool)
Creates an equatable key object from the key values in the given entry.
object CreateEquatableKey(IUpdateEntry entry, bool fromOriginalValues = false)
Parameters
entry
IUpdateEntryThe entry tracking an entity instance.
fromOriginalValues
boolWhether the original or current value should be used.
Returns
- object
The key value.