Delen via


IDependentKeyValueFactory<TKey> Interface

Definition

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<TKey>
public interface IDependentKeyValueFactory<TKey> : Microsoft.EntityFrameworkCore.ChangeTracking.IDependentKeyValueFactory
type IDependentKeyValueFactory<'Key> = interface
type IDependentKeyValueFactory<'Key> = interface
    interface IDependentKeyValueFactory
Public Interface IDependentKeyValueFactory(Of TKey)
Public Interface IDependentKeyValueFactory(Of TKey)
Implements IDependentKeyValueFactory

Type Parameters

TKey

The generic type of the key.

Implements

Remarks

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

Properties

EqualityComparer

The IEqualityComparer<T> to use for comparing key instances.

Methods

CreateDependentEquatableKey(IUpdateEntry, Boolean)

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

(Inherited from IDependentKeyValueFactory)
CreatePrincipalEquatableKey(IUpdateEntry, Boolean)

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

(Inherited from IDependentKeyValueFactory)
TryCreateFromBuffer(ValueBuffer, TKey)
Obsolete.

Attempts to create a key instance using foreign key values from the given ValueBuffer.

TryCreateFromCurrentValues(IUpdateEntry, TKey)

Attempts to create a key instance using foreign key values from the given IUpdateEntry.

TryCreateFromOriginalValues(IUpdateEntry, TKey)

Attempts to create a key instance using original foreign key values from the given IUpdateEntry.

TryCreateFromPreStoreGeneratedCurrentValues(IUpdateEntry, TKey)

Attempts to create a key instance from the given IUpdateEntry using foreign key values that were set before any store-generated values were propagated.

TryCreateFromRelationshipSnapshot(IUpdateEntry, TKey)

Attempts to create a key instance from the given IUpdateEntry using foreign key values from the previously known relationship.

Applies to