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
IReadOnlyForeignKeyentityType
IReadOnlyEntityType
Returns
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
IReadOnlyForeignKeyentityType
IReadOnlyEntityType
Returns
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
IReadOnlyForeignKeyentityType
IReadOnlyEntityType
Returns
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
IReadOnlyForeignKeyentityType
IReadOnlyEntityType
Returns
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
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
IForeignKeyforeignKeyProperties
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