语言

RuntimeProperty.IReadOnlyProperty.IsForeignKey 方法

定义

获取一个值,该值指示此属性是用作外键(还是复合外键的一部分)。

[System.Diagnostics.DebuggerStepThrough]
bool IReadOnlyProperty.IsForeignKey();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.IsForeignKey : unit -> bool
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.IsForeignKey : unit -> bool
Function IsForeignKey () As Boolean Implements IReadOnlyProperty.IsForeignKey

返回

true 如果属性用作外键,则为 。否则 false为 。

实现

特性

适用于