共用方式為


RelationalTypeMapper.RequiresKeyMapping(IProperty) 方法

定義

取得值,指出指定的屬性是否應該使用適合索引鍵屬性的資料庫類型。

protected virtual bool RequiresKeyMapping (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member RequiresKeyMapping : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
override this.RequiresKeyMapping : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
Protected Overridable Function RequiresKeyMapping (property As IProperty) As Boolean

參數

property
IProperty

要為其取得對應的屬性。

傳回

如果屬性是索引鍵,則為 True,否則為 false。

適用於