IPrincipalKeyValueFactory<TKey> Interface
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.
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<TKey>
public interface IPrincipalKeyValueFactory<TKey> : Microsoft.EntityFrameworkCore.ChangeTracking.IPrincipalKeyValueFactory
type IPrincipalKeyValueFactory<'Key> = interface
type IPrincipalKeyValueFactory<'Key> = interface
interface IPrincipalKeyValueFactory
Public Interface IPrincipalKeyValueFactory(Of TKey)
Public Interface IPrincipalKeyValueFactory(Of TKey)
Implements IPrincipalKeyValueFactory
Type Parameters
- TKey
The key type.
- Implements
Remarks
See Implementation of database providers and extensions for more information and examples.
Properties
EqualityComparer |
An IEqualityComparer<T> for comparing key objects. |
Methods
CreateEquatableKey(IUpdateEntry, Boolean) |
Creates an equatable key object from the key values in the given entry. (Inherited from IPrincipalKeyValueFactory) |
CreateFromBuffer(ValueBuffer) |
Obsolete.
Creates a key object from key values obtained from their indexed position in the given ValueBuffer. |
CreateFromCurrentValues(IUpdateEntry) |
Creates a key object from the key values in the given entry. |
CreateFromKeyValues(IReadOnlyList<Object>) |
Creates a key object from key values obtained in-order from the given enumerable. |
CreateFromKeyValues(Object[]) |
Creates a key object from key values obtained in-order from the given array. |
CreateFromOriginalValues(IUpdateEntry) |
Creates a key object from the original key values in the given entry. |
CreateFromRelationshipSnapshot(IUpdateEntry) |
Creates a key object from the relationship snapshot key values in the given entry. |
FindNullPropertyInCurrentValues(IUpdateEntry) |
Finds the first null key value in the given entry and returns the associated IProperty. |
FindNullPropertyInKeyValues(IReadOnlyList<Object>) |
Finds the first null in the given in-order array of key values and returns the associated IProperty. |
FindNullPropertyInKeyValues(Object[]) |
Finds the first null in the given in-order array of key values and returns the associated IProperty. |