title: Mapping enums while using dapper
body: <p>I have the following problem. I am using Dapper to connect to a database, the field that is a varchar in the database is an enum in my object. There is no problem for Dapper to map the database object to my DTO if the enum has the same name as the string in the database. Unfortunately, the strings in the database are not very user friendly and I was wondering if there is a way to map them or convert (only enums) to use more user friendly versions. For example, database value for a field:</p>
  
  <pre><code>SomeVeIRdLooking_Value
  </code></pre>
  
  <p>And I would like it to map to: <br /></p>
  
  <pre><code>public enum MyEnum {
      MyFormattedValue
  }
  </code></pre>