Share via


DisplayKey Element (CSDL)

The DisplayKey element contains a list of the following elements that together constitute a strong identifier. The DisplayKey is found only as a child of the Entity element.

The DisplayKey element applies to the following objects:

  • Columns

  • Role ends

Applicable Attributes

The following table lists the attributes found on the DisplayKey element.

Attribute Name

Is Required

Value

IsDisplayKey

No

True or false.

Remarks

This element is for reports. The element to which you apply this attribute need not be the actual table key, only an element that you will present as the key. However, the column must contain unique values.

Example

The following sample shows a column, EnglishProductCategoryName, that has been specified as the display key for the table, ProductCategory.

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

See Also

Concepts

Understanding the Tabular Object Model

CSDL Concepts