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

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -