Share via


ForeignKeyExtensions 类

定义

注意

Use IReadOnlyForeignKey

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
继承
ForeignKeyExtensions
属性

方法

GetDependentKeyValueFactory<TKey>(IForeignKey)
已过时.

基于从各种形式的实体数据中获取的外键值为键值创建工厂。

此方法通常由数据库提供程序 (和其他扩展) 使用。 它通常不用于应用程序代码。

GetNavigation(IForeignKey, Boolean)
已过时.

返回与此外键关联的导航。

GetRelatedEntityType(IForeignKey, IEntityType)
已过时.

获取与给定实体类型相关的实体类型。

IsBaseLinking(IForeignKey)
已过时.

返回一个值,该值指示外键是否在主键上定义并指向同一主键。

ToDebugString(IForeignKey, MetadataDebugStringOptions, Int32)
已过时.

创建给定元数据的可读表示形式。

警告:不要依赖于返回的字符串的格式。 它仅用于调试,可能会在发布之间任意更改。

适用于