AssociationType.IsForeignKey 属性

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

获取一个布尔属性值,该值指定列是否为外键。

命名空间:  System.Data.Entity.Core.Metadata.Edm
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public ReadOnly Property IsForeignKey As Boolean 
    Get
用法
Dim instance As AssociationType 
Dim value As Boolean 

value = instance.IsForeignKey
public bool IsForeignKey { get; }
public:
property bool IsForeignKey {
    bool get ();
}
member IsForeignKey : bool
function get IsForeignKey () : boolean

属性值

类型:System.Boolean
一个指定列是否为外键的布尔值。如果为 true,则列是外键。如果为 false(默认值),则列不是外键。

请参阅

参考

AssociationType 类

System.Data.Entity.Core.Metadata.Edm 命名空间