GetOptionSetValue
AccountType type = accountEntity.GetOptionSetValue<AccountType>(AccountDefinition.Columns.AccountType);
GetOptionSetValue with defaultValue
AccountType type = accountEntity.GetOptionSetValue<AccountType>(AccountDefinition.Columns.AccountType, AccountType.Client);
accountEntity.SetOptionSetValue<AccountType>(AccountDefinition.Columns.AccountType, AccountType.Corporate);
Get attribute value with default Value specified.
string name = accountEntity.GetAttributeValue<string>(AccountDefinition.Columns.Name, "default value");
Get Attribute value from a main entity and looking to find the value in the preImage entity specified.
string name = accountEntity.GetAttributeValue<string>(preImage, AccountDefinition.Columns.Name, "default value");