模型設計師物件屬性

報表模型是由三個部份組成:

  • 語意模型:語意模型包含您的資料的商務模型,以您熟悉的名稱來描述,例如產品或客戶。

  • 實體模型:實體模型包含資料庫的實體描述,利用選擇性轉換 (例如資料來源檢視中的已定義查詢),更密切地對應至您所要的商務模型。

  • 對應:對應描述如何在實體模型中表示語意模型,並將語意物件繫結至其對應的實體物件。

報表模型設計師建立的每個報表模型,正好只包含一個語意模型、一個實體模型和一個對應。

報表模型是以語意模型定義語言 (SMDL) 撰寫,這種語言是以 XML 為基礎。呼叫報表伺服器 Web 服務時,使用 SMDL 檔案來建立模型。SMDL 的命名空間 URI 為 https://schemas.microsoft.com/sqlserver/YYYY/MM/semanticmodeling,其中 YYYY/MM 指出該 SMDL 版本的發行日期。SMDL 檔案的標準副檔名是 .smdl。SMDL 檔案使用的 MimeType 是 text/xml。SMDL 中的所有識別碼有區分大小寫,並使用不變文化特性比對。在此文件集裡,SMDL 元素會當成物件和集合來討論。

此章節討論與模型相關聯的,且可以在模型設計師中指派的不同屬性。

在此章節中

集合/物件

屬性

描述

語意模型物件

ID, Description, Version, Entities, Culture, Perspectives, CustomProperties, DataSourceView

定義整個模型。

屬性物件

Name, DataType, Nullable, Expression, SortDirection, Width, Alignment, MimeType, DataCulture, DiscourageGrouping, EnableDrillthrough, Format, ContextualName, IsAggregate, IsFilter, OmitSecurityFilters, DefaultAggregateAttributeID, ValueSelection, Binding

定義實體的屬性。

AttributeReference 物件

Path, AttributeID

包含屬性的參考,以及可用於存取該屬性的選擇性路徑。

Binding 物件

包含有關實體、屬性、角色或繼承如何繫結至實體資料來源的資訊。

Column 物件

TableName, Name

定義實體或屬性所繫結的資料行。

CustomProperties 集合

CustomProperty

允許模型設計工具儲存實作特定的屬性。

CustomProperty 物件

Name, Value

包含應用程式特定資料。

DefaultAggregateAttributes 集合

AttributeReference

包含顯示此實體之多個執行個體的摘要時,要顯示之彙總屬性的參考。

DefaultDetailAttributes 集合

AttributeReference

包含顯示此實體的執行個體時,要顯示之屬性的參考。

DefaultSecurityFilter 物件

AttributeReference

包含在沒有安全性篩選時,作為實體之篩選的屬性。

Entities 集合

EntityFolderItem

包含模型中之實體和實體資料夾的已排序清單。

Entity 物件

CollectionName, UniqueConstraints, IdentifyingAttributes, DefaultDetailAttributes, DefaultAggregateAttributes, SortAttributes, InstanceSelection, IsLookup, Inheritance, DisjoinInheritance, Fields, SecurityFilters, DefaultSecurityFilter, Binding

定義模型中的實體。

EntityFolder 物件

Entities

定義包含實體 (和實體資料夾) 的資料夾。

Field 物件

Variations

定義實體的欄位 (屬性或角色)。

FieldFolder 物件

Fields

定義包含欄位 (和欄位資料夾) 的資料夾。

Fields 集合

FieldFolderItem

包含實體之欄位 (屬性和角色) 和欄位資料夾的已排序清單。

HiddenFields 集合

FieldFolderItemID

包含使用角色存取實體時,不應顯示角色之目標實體的欄位與欄位資料夾參考。

IdentifyingAttributes 集合

AttributeReference

包含屬性的參考,這些屬性用於向使用者識別實體的執行個體。

Inheritance 物件

InheritsFromEntityID, Binding

定義如何從另一個實體繼承實體。

Linguistics 集合

SingularName, PluralName

定義角色的語言屬性。

ModelItem 物件

ID, Name, Description, Hidden, CustomProperties

定義模型的元素:實體、實體資料夾、欄位或欄位資料夾。

ModelItems 集合

ModelItemID

在檢視方塊中包含模型項目的清單。

Perspective 物件

ID, Name, Description, ModelItems, CustomProperties

識別要以子模型形式,提供給使用者之模型的子集。

Perspectives 集合

Perspective

包含模型的檢視方塊清單,例如,模型子集。

Recursion 物件

Recursive, IncludeSelf

定義角色的遞迴周遊屬性。

Relation 物件

Name, RelationEnd

定義角色或繼承所繫結的關聯性。

Role 物件

Name, Linguistics, RelatedRoleID, Cardinality, ContextualName, HiddenFields, ExpandInline, PromoteLookup, Preferred, Recursion, Binding

定義實體的角色 (相關的實體)。

SecurityFilters 集合

AttributeReference

包含應當成實體之篩選的屬性。

SortAttribute 物件

AttributeReference, SortDirection

包含要排序之屬性的參考。

SortAttributes 集合

SortAttribute

包含要排序之屬性的參考。

Table 物件

Name

定義實體所繫結的資料表。

Variations 集合

Field

包含視為包含欄位之變數的欄位。