DisplayKey 元素 (CSDL)

DisplayKey 元素包含共同构成强标识符的以下元素的列表。 DisplayKey 只作为 Entity 元素的子项存在。

DisplayKey 元素适用于下列对象:

  • 角色端

适用的属性

下表列出了在 DisplayKey 元素上找到的属性。

属性名称

是否必需

IsDisplayKey

True 或 False。

注释

此元素不用于报表。 您将此属性应用到的元素不需要是实际的表键,而只是一个您将显示为键的元素。 但是,此列必须包含唯一值。

示例

以下示例说明了列 EnglishProductCategoryName,该列已指定为表 ProductCategory 的显示键。

<EntityType Name="ProductCategory">
  <Key>
    <PropertyRef Name="RowNumber" />
  </Key>
  ... 
  <bi:EntityType>
    <bi:DisplayKey>
      <bi:MemberRef Name="EnglishProductCategoryName" />
    </bi:DisplayKey>
  </bi:EntityType>
</EntityType>

请参阅

概念

了解表格对象模型

CSDL 概念