title: Mapping Enum Error FluentNhibernate
body: <p>I want to Map an <code>enum</code> to <code>mysql</code> Database.</p>
  
  <pre><code>class CommisionWorking
  { 
      public enum Color{ O, PP, FP };
  }
  </code></pre>
  
  <p>This is my <code>mapping</code> Class.</p>
  
  <pre><code>class CommisionWorkingMap : ClassMap&lt;CommisionWorking&gt;
  {
      public CommisionWorkingMap()
      {
        Map(x =&gt; x.Color).CustomType&lt;typeof(Color));
      }
  </code></pre>
  
  <p>This shows an error. 
  Tried</p>
  
  <pre><code>Map(x=&gt;x.Color).CustomType&lt;GenericEnumMapper&lt;Color&gt;&gt;
  Map(x =&gt; x.Color).CustomType();
  </code></pre>
  
  <p>Both Show Error.</p>
  
  <p>Please Help.</p>