Created
January 13, 2019 00:12
-
-
Save mrjamiebowman/3b228a733fb6fb5fc2861854f4d55d90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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