ConvertType Element in Interpretation (BDCMetadata Schema)

Applies to: SharePoint Server 2010

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

Namespace: https://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.

Warning

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

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

Attributes and Elements

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.