Types in the Microsoft Dynamics CRM SDK 2013
Applies To: Dynamics CRM 2013
This topic describes the types used in Microsoft Dynamics CRM.
Type mapping between versions
Since the release of Microsoft Dynamics CRM 2011, the programming model has been changed to use native .NET types whenever possible. 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 |
New type |
Microsoft Dynamics CRM 4.0 type |
---|---|---|
AttributeTypeCode.BigInt |
long |
N/A |
AttributeTypeCode.Boolean |
bool |
|
AttributeType.CalendarRules |
EntityCollection or CalendarRules[] |
DynamicEntity[] or calendarrule[] |
AttributeType.Customer |
||
AttributeType.DateTime |
System.DateTime |
|
AttributeType.Decimal |
decimal |
|
AttributeType.Double |
double |
|
AttributeType.EntityName |
string |
Attributes with ObjectTypeCode in DisplayMask |
AttributeType.Integer |
int |
|
AttributeType.Lookup |
||
AttributeType.ManagedProperty |
N/A |
|
AttributeType.Memo |
string |
System.String |
AttributeType.Money |
||
AttributeType.Owner |
||
AttributeType.PartyList |
EntityCollection or ActivityParty[] |
activityparty[] or DynamicEntity [] |
AttributeType.Picklist |
||
AttributeType.Uniqueidentifier (Formerly PrimaryKey) |
System.Guid |
|
AttributeType.String |
string |
System.String |
AttributeType.State |
OptionSetValue or enumeration generated for the entity state |
EntityNameStateInfo |
AttributeType.Status |
||
AttributeType.Uniqueidentifier |
System.Guid |
|
AttributeType.Virtual |
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.
Old type |
New type |
---|---|
For more information, see Use the late bound entity class in code. |
|
See Also
Use Microsoft Dynamics CRM 2013 services in code
The programming models for Microsoft Dynamics CRM 2013
Upgrade your code from Microsoft Dynamics CRM 2011 to Microsoft Dynamics CRM 2013