KeyExtensions.GetPrincipalKeyValueFactory<TKey>(IKey) Method

Definition

Gets a factory for key values based on the index key values taken from various forms of entity data.

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

C#
public static Microsoft.EntityFrameworkCore.ChangeTracking.IPrincipalKeyValueFactory<TKey> GetPrincipalKeyValueFactory<TKey> (this Microsoft.EntityFrameworkCore.Metadata.IKey key);

Type Parameters

TKey

The type of the key instance.

Parameters

key
IKey

The key metadata.

Returns

The factory.

Applies to

Toode Versioonid
Entity Framework Core 5.0