In Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online, the programming model has been changed to use native .NET types whenever possible.
Type Mapping Between Versions
The following table shows the mapping between the defined type for an entity attribute, the type that is used in a record, and the type that was used in Microsoft Dynamics CRM 4.0.
AttributeTypeCode | Microsoft Dynamics CRM 2011 type | Microsoft Dynamics CRM 4.0 type |
long | N/A | |
bool | ||
EntityCollection or CalendarRules[] | DynamicEntity[] or calendarrule[] | |
System.DateTime | ||
decimal | ||
double | ||
string | Attributes with ObjectTypeCode in DisplayMask | |
int | ||
N/A | ||
string | System.String | |
EntityCollection or ActivityParty[] | activityparty[] or DynamicEntity [] | |
AttributeType. Uniqueidentifier (Formerly PrimaryKey) | System.Guid | |
string | System.String | |
OptionSetValue or enumeration generated for the entity state | EntityNameStateInfo | |
System.Guid | ||
Not used in records. | Not used in records. |
Other Type Changes
The following table lists other notable type changes that were not listed in the table above.
Microsoft Dynamics CRM 4.0 type | Microsoft Dynamics CRM 2011 type |
No comments:
Post a Comment