TypeDescriptor 元素
(BDCMetadata 架构)
适用于:SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013
指定 TypeDescriptor。
命名空间: http://schemas.microsoft.com/windows/2007/BusinessDataCatalog
架构:BDCMetadata
<TypeDescriptor TypeName = "String" LobName = "String" IdentifierEntityNamespace = "String" IdentifierEntityName = "String" IdentifierName = "String" ForeignIdentifierAssociationName = "String" ForeignIdentifierAssociationEntityName = "String" ForeignIdentifierAssociationEntityNamespace = "String" AssociatedFilter = "String" IsCollection = "Boolean" ReadOnly = "Boolean" CreatorField = "Boolean" UpdaterField = "Boolean" PreUpdaterField = "Boolean" Significant = "Boolean" Name = "String" DefaultDisplayName = "String" IsCached = "Boolean"> </TypeDescriptor>
元素和属性
下面各部分介绍了属性、子元素和父元素。
Attributes
属性 |
说明 |
---|---|
**TypeName** |
必填。 由 TypeDescriptor 表示的数据结构数据类型的标识符。 属性类型:**String** |
**LobName** |
可选。 由 TypeDescriptor 表示的数据结构。 此属性的默认值是 “TypeDescriptor” 的名称。 例如,如果此 TypeDescriptor 的 “LobName” 属性等于“CN1A”,则业务线 (LOB) 系统数据结构可由 **TypeDescriptor** 属性等于“客户名称”的 TypeDescriptor 表示。 属性类型:**String** |
**IdentifierEntityNamespace** |
可选。 包含 TypeDescriptor 引用的标识符的外部内容类型的命名空间。 如果 TypeDescriptor 未引用标识符,则此属性必须不存在。 如果存在此属性,还必须存在 **IdentifierEntityName** 和 **IdentifierName** 属性。 此属性的默认值是外部内容类型的命名空间,该命名空间包含方法,该方法包含包含 **TypeDescriptor** 的参数。 属性类型:**String** |
**IdentifierEntityName** |
可选。 包含 TypeDescriptor 引用的标识符的实体的名称。 如果 TypeDescriptor 未引用标识符,则此属性必须不存在。 如果存在此属性,则 **IdentifierEntityNamespace** 和 **IdentifierName** 属性也必须存在。 此属性的默认值是包含 **Method** 的实体的名称,其中包含包含 TypeDescriptor 的 **Parameter**。 属性类型:**String** |
**IdentifierName** |
可选。 TypeDescriptor 引用的标识符的名称。 如果 TypeDescriptor 未引用标识符,则此属性必须不存在。 属性类型:**String** |
**ForeignIdentifierAssociationName** |
可选。 TypeDescriptor 引用的关联的名称。 如果 TypeDescriptor 不引用 “Association”,则此属性不得存在。 如果存在此属性,则 **IdentifierName** 属性也必须存在。 当此 TypeDescriptor 引用的标识符与 “Association” 相关,并且 “Identifier” 由 “Association” 的源 **Entity** 包含时,必须指定 **ForeignIdentifierAssociationName** 属性。 属性类型:**String** |
**ForeignIdentifierAssociationEntityName** |
可选。 包含 TypeDescriptor 引用的“关联”的实体的名称。 如果 TypeDescriptor 不引用 “Association”,则此属性不得存在。 如果存在此属性,还必须存在 “ForeignIdentifierAssociationEntityNamespace” 和 **ForeignIdentifierAssociationName** 属性。 此属性的默认值是包含 **Method** 的实体的名称,其中包含包含 TypeDescriptor 的 **Parameter**。 属性类型:**String** |
**ForeignIdentifierAssociationEntityNamespace** |
可选。 包含 TypeDescriptor 引用的“关联”的实体的命名空间。 如果 TypeDescriptor 不引用 “Association”,则此属性不得存在。 当此属性存在时,还必须存在“ForeignIdentifierAssociationEntityName”和“ForeignIdentifierAssociationName”属性。 此属性的默认值是 **Entity** 的命名空间,该命名空间包含包含 TypeDescriptor 的 **Method**,其中包含 **Parameter**。 属性类型:**String** |
**AssociatedFilter** |
可选。 与 TypeDescriptor 关联的 FilterDescriptor 的名称。 如果 TypeDescriptor 未与 FilterDescriptor 关联,则此属性必须不存在。 属性类型:**String** |
**IsCollection** |
可选。 指定 TypeDescriptor 是表示单个数据结构还是数据结构的集合。 默认值:false** 属性类型:**布尔值** |
**ReadOnly** |
可选。 指定是否可以修改由 TypeDescriptor 表示的数据结构存储的数据。 如果包含 TypeDescriptor 的 Parameter 的“Direction”属性的值为“In”,则不能指定此属性。 默认值:false** 属性类型:**布尔值** |
**CreatorField** |
可选。 指定 **TypeDescriptor** 是否表示 **Creator** 类型的 **MethodInstances** 的字段,该字段由包含 TypeDescriptor 的 **Parameter** 包含。 默认值:false** 属性类型:**布尔值** |
**UpdaterField** |
可选。 指定 **TypeDescriptor** 是否表示 **Updater** 类型的 **MethodInstances** 的字段,该字段由包含 **TypeDescriptor 的 **Parameter** 包含 。 指定此属性后,不得指定 PreUpdaterField** 属性。 默认值:false** 属性类型:**布尔值** |
**PreUpdaterField** |
可选。 指定 **TypeDescriptor** 表示的数据结构是否存储从 **Updater** 类型的 **MethodInstances** 字段的外部系统接收的最新数据值。 指定此属性时,不得指定 UpdaterField 属性。 默认值:false** 属性类型:**布尔值** |
**重要** |
可选。 指定在计算哈希代码或比较存储在数据结构中的值时是否包括由此 TypeDescriptor** 表示的数据结构存储的值。 例如,在确定记录是否已修改时,会考虑表示客户姓氏的 TypeDescriptor,因此它很重要,而表示客户记录上次修改日期的 TypeDescriptor 通常不考虑在内,以确定记录是否已修改,因此并不重要。 默认值:**true** 属性类型:**布尔值** |
**名字** |
必填。 TypeDescriptor 的名称。 属性类型:**String** **注意**:TypeDescriptor 的名称不应包含正斜杠 (“/”) ,句点 (“的特殊字符。) ,或左方括号 (“[”) 。 |
**DefaultDisplayName** |
可选。 TypeDescriptor 的显示名称。 属性类型:**String** |
**IsCached** |
可选。 指定是否经常使用 TypeDescriptor。 默认值:**true** 属性类型:**布尔值** |
子元素
元素 | 说明 |
---|---|
MetadataObject 中的 LocalizedDisplayNames 元素(BDCMetadata 架构) | TypeDescriptor 的本地化名称。 |
MetadataObject 中的 Properties 元素(BDCMetadata 架构) | TypeDescriptor 的属性。 当 TypeDescriptor 的类型是 System.String 时, Properties 元素可以包含类型为 System.Int32 的 Property,其 Name 属性设置为 Size。 Property 的值指定由此 TypeDescriptor 描述的数据结构的值的最大预期字符串长度。 |
TypeDescriptor 中的 Interpretation 元素(BDCMetadata 架构) | 针对 TypeDescriptor 表示的数据结构所存储的数据的规则 |
TypeDescriptor 中的 DefaultValues 元素(BDCMetadata 架构) | TypeDescriptor 的默认值。 |
TypeDescriptor 中的 TypeDescriptors 元素(BDCMetadata 架构) | TypeDescriptor 的子 TypeDescriptors。 |
父元素
元素 | 说明 |
---|---|
TypeDescriptor 中的 TypeDescriptors 元素(BDCMetadata 架构) |