Export (0) Print
Expand All

ConvertType Element in Interpretation (BDCMetadata Schema)

Last modified: July 20, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

Specifies the rule to convert the data type of a data value into another data type.

Namespace: http://schemas.microsoft.com/windows/2007/BusinessDataCatalog

Schema: BDCMetadata

The Convert element specifies the rule to convert the data type of a data value into another data type. When the rules are applied in order, this rule specifies the data type of the data value to be converted to the data type specified by the BDCType attribute. When the rules are applied in reverse order, this rule specifies the data type of the data value to be converted to the data type specified by the LOBType attribute. For example, this rule can specify converting a date value obtained from an external system, into a culture and locale sensitive string which will eventually be displayed to the user, and converting the updated value for that string back into the date that is compatible with the external system.

Caution note Caution

ConvertType does not support non-Gregorian calendars for conversions between System.String and System.DateTime.

<ConvertType LOBType = "String" BDCType = "String"> </ConvertType>

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

LOBType

Required.

The data type to convert the data value into when the rules are applied in reverse order.

Attribute type: String

BDCType

Required.

The data type to convert the data value into when the rules are applied in order.

Attribute type: String

LOBLocale

Optional.

The locale of the data that is received from the external system.

Child elements

None.

Parent elements

Element

Description

Interpretation Element in TypeDescriptor (BDCMetadata Schema)

The rules to apply to the data stored in the data structures that are represented by a TypeDescriptor.

Show:
© 2014 Microsoft