ForeignKeyExtensions.GetDependentKeyValueFactory<TKey> Method

Definition

Creates a factory for key values based on the foreign 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.

public static Microsoft.EntityFrameworkCore.ChangeTracking.IDependentKeyValueFactory<TKey> GetDependentKeyValueFactory<TKey> (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
static member GetDependentKeyValueFactory : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> Microsoft.EntityFrameworkCore.ChangeTracking.IDependentKeyValueFactory<'Key>
<Extension()>
Public Function GetDependentKeyValueFactory(Of TKey) (foreignKey As IForeignKey) As IDependentKeyValueFactory(Of TKey)

Type Parameters

TKey

The type of key instanceas.

Parameters

foreignKey
IForeignKey

The IForeignKey for which a factory is needed.

Returns

A new factory.

Applies to