ForeignKeyExtensions Class

Definition

Caution

Use IReadOnlyForeignKey

Extension methods for IReadOnlyForeignKey.

public static class ForeignKeyExtensions
[System.Obsolete("Use IReadOnlyForeignKey")]
public static class ForeignKeyExtensions
type ForeignKeyExtensions = class
[<System.Obsolete("Use IReadOnlyForeignKey")>]
type ForeignKeyExtensions = class
Public Module ForeignKeyExtensions
Public Class ForeignKeyExtensions
Inheritance
ForeignKeyExtensions
Attributes

Methods

GetDependentKeyValueFactory<TKey>(IForeignKey)

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.

GetNavigation(IForeignKey, Boolean)

Returns a navigation associated with this foreign key.

GetRelatedEntityType(IForeignKey, IEntityType)

Gets the entity type related to the given one.

IsBaseLinking(IForeignKey)

Returns a value indicating whether the foreign key is defined on the primary key and pointing to the same primary key.

ToDebugString(IForeignKey, MetadataDebugStringOptions, Int32)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

Applies to