title: Mapping Enum from String
body: <p>I have a string column in a database table which maps to an Enum in code.  In my dbml file when I set the "Type" to <code>MyTypes.EnumType</code> I get the following error:</p>
  
  <blockquote>
    <p>Error 1   DBML1005: Mapping between DbType 'VarChar(50) NOT NULL' and
    Type 'MyTypes.EnumType' in Column 'EnumCol' of Type 'Table1' is not
    supported.</p>
  </blockquote>
  
  <p>This question:
  <a href="https://stackoverflow.com/questions/4939/linq-to-sql-strings-to-enums">LINQ to SQL strings to enums</a>
  indicates that what I am trying to do is possible, but how is it done?</p>