ForeignKeyExtensions.GetDependentKeyValueFactory<TKey> Method
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.
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
Entity Framework