Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mrjamiebowman/3b228a733fb6fb5fc2861854f4d55d90 to your computer and use it in GitHub Desktop.
Save mrjamiebowman/3b228a733fb6fb5fc2861854f4d55d90 to your computer and use it in GitHub Desktop.
[CRMEntity("account")]
public class AccountModel {
[CRM(FieldName = "accountid")]
public Guid? AccountId { get; set; }
[CRM(FieldName = "name")]
public string AccountName { get; set; }
[CRM(FieldName = "accountnumber")]
public string AccountNumber { get; set; }
[CRM(FieldName = "createdon")]
public DateTime? CreatedOn { get; set; }
[CRM(FieldName = "modifiedon")]
public DateTime? ModifiedOn { get; set; }
// this field will have a custom map
[CRM(FieldName = "customertypecode", CustomFieldMap = typeof(CustomerTypeCodeType?))]
public CustomerTypeCodeType? CustomerTypeCode { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment