PropertyExtensions.IsPrimaryKey(IProperty) メソッド

定義

注意事項

Use IReadOnlyProperty.IsPrimaryKey

このプロパティが主キー (または複合主キーの一部) として使用されるかどうかを示す値を取得します。

public static bool IsPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use IReadOnlyProperty.IsPrimaryKey")]
public static bool IsPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member IsPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
[<System.Obsolete("Use IReadOnlyProperty.IsPrimaryKey")>]
static member IsPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
<Extension()>
Public Function IsPrimaryKey (property As IProperty) As Boolean

パラメーター

property
IProperty

確認するプロパティ。

戻り値

true プロパティが主キーとして使用される場合は 。それ以外の場合 falseは 。

属性

適用対象