title: How to auto-generate early bound Enum properties for Entity attributes that are normally Option Sets?
body: <p>Generating early bound entity classes for CRM Entities is fairly simple.  Generating the Enums for the OptionSets is fairly simple as well.  Generating the OptionSet Enum properties for entities that are typed to the correct Enum is not so simple, and not currently supported by the CrmSrvUtil.exe.  If you want to be able to use the enums for populating the option set values, you have to continually write code that looks like this:</p>
  
  <pre><code>contact.Address1_AddressTypeCode = new OptionSetValue((int)contact_address1_addresstypecode.Home);
  </code></pre>
  
  <p>How do I generate Enum specific properties for <code>OptionSetValues</code>, so I can write code like this:</p>
  
  <pre><code>contact.Address1_AddressTypeCode = contact_address1_addresstypecode.Home;
  </code></pre>
  
  <p>and so <code>Address1_AddressTypeCode's</code> type is <code>contact_address1_addresstypecode</code>?</p>