共用方式為


DisplayKey 元素 (CSDLBI)

重要: 這份檔已封存。 如需最新資訊,請參閱 Open 規格 [CSDLBI]:概念結構定義檔案格式與商業智慧批註

DisplayKey 元素會包含共同構成強式識別碼之下列元素的清單。 DisplayKey 只會顯示成 EntityType 元素的子系。 它可以參考資料行或角色端。

元素和屬性

下表列出 DisplayKey 元素的屬性。

名稱 必要 描述
IsDisplayKey true 或 false。

備註

此元素適用於報表。 您套用此屬性的元素不需要是實際的資料表索引鍵,只要是您將呈現為索引鍵的元素即可。 不過,用於 DisplayKey 的資料行必須包含唯一值。

表格式範例

下列 CSDLBI 1.1 版中的範例顯示 AdventureWorks 範本資料模型中已指定為資料表之 DisplayKey 的資料行。

<sample in progress>  

多維度範例

下列 CSDLBI 1.1 版中的範例顯示 Contoso Operations Cube 表示的摘錄。 在此模型中,Color 資料行已標示為 Bikes 資料表的顯示索引鍵。

  
<EntityType   
    Name="Bike">  
.. .. ..  
<Property   
    Name="Color"   
    Type="String"   
    MaxLength="Max"   
    Unicode="true"   
    FixedLength="false">  
<bi:Property   
    ContextualNameRule="Context"   
    Alignment="Left" Units="counts"   
    SortDirection="Descending"   
    IsRightToLeft="true"   
    DefaultAggregateFunction="Max" />  
</Property>  
.. .. ..  
<bi:EntityType>  
   <bi:DisplayKey>  
      <bi:MemberRef Name="Color" />  
   </bi:DisplayKey>>  
.. .. ..  
</bi:EntityType>  
</EntityType>