Table of Contents

Class ForeignKeyExtensions

Namespace
Microsoft.EntityFrameworkCore.Metadata.Internal
Assembly
Microsoft.EntityFrameworkCore.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static class ForeignKeyExtensions
Inheritance
ForeignKeyExtensions
Inherited Members

Methods

FindNavigationsFrom(IReadOnlyForeignKey, IReadOnlyEntityType)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static IEnumerable<IReadOnlyNavigation> FindNavigationsFrom(this IReadOnlyForeignKey foreignKey, IReadOnlyEntityType entityType)

Parameters

foreignKey IReadOnlyForeignKey
entityType IReadOnlyEntityType

Returns

IEnumerable<IReadOnlyNavigation>

FindNavigationsFromInHierarchy(IReadOnlyForeignKey, IReadOnlyEntityType)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static IEnumerable<IReadOnlyNavigation> FindNavigationsFromInHierarchy(this IReadOnlyForeignKey foreignKey, IReadOnlyEntityType entityType)

Parameters

foreignKey IReadOnlyForeignKey
entityType IReadOnlyEntityType

Returns

IEnumerable<IReadOnlyNavigation>

FindNavigationsTo(IReadOnlyForeignKey, IReadOnlyEntityType)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static IEnumerable<IReadOnlyNavigation> FindNavigationsTo(this IReadOnlyForeignKey foreignKey, IReadOnlyEntityType entityType)

Parameters

foreignKey IReadOnlyForeignKey
entityType IReadOnlyEntityType

Returns

IEnumerable<IReadOnlyNavigation>

FindNavigationsToInHierarchy(IReadOnlyForeignKey, IReadOnlyEntityType)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static IEnumerable<IReadOnlyNavigation> FindNavigationsToInHierarchy(this IReadOnlyForeignKey foreignKey, IReadOnlyEntityType entityType)

Parameters

foreignKey IReadOnlyForeignKey
entityType IReadOnlyEntityType

Returns

IEnumerable<IReadOnlyNavigation>

GetNavigations(IReadOnlyForeignKey)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static IEnumerable<IReadOnlyNavigation> GetNavigations(this IReadOnlyForeignKey foreignKey)

Parameters

foreignKey IReadOnlyForeignKey

Returns

IEnumerable<IReadOnlyNavigation>

GetPropertiesWithMinimalOverlapIfPossible(IForeignKey, out IReadOnlyList<IProperty>, out IReadOnlyList<IProperty>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static void GetPropertiesWithMinimalOverlapIfPossible(this IForeignKey foreignKey, out IReadOnlyList<IProperty> foreignKeyProperties, out IReadOnlyList<IProperty> principalKeyProperties)

Parameters

foreignKey IForeignKey
foreignKeyProperties IReadOnlyList<IProperty>
principalKeyProperties IReadOnlyList<IProperty>

IsSelfReferencing(IReadOnlyForeignKey)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static bool IsSelfReferencing(this IReadOnlyForeignKey foreignKey)

Parameters

foreignKey IReadOnlyForeignKey

Returns

bool