c# - How to auto-generate early bound Enum properties for Entity attributes that are normally Option Sets? -
generating bound entity classes crm entities simple. generating enums optionsets simple well. generating optionset enum properties entities typed correct enum not simple, , not supported crmsrvutil.exe. if want able use enums populating option set values, have continually write code looks this:
contact.address1_addresstypecode = new optionsetvalue((int)contact_address1_addresstypecode.home); how generate enum specific properties optionsetvalues, can write code this:
contact.address1_addresstypecode = contact_address1_addresstypecode.home; and address1_addresstypecode's type contact_address1_addresstypecode?
my previous answer sucked... use instead: early bound generator crm disclamer: wrote well.
Comments
Post a Comment