title: How to use an existing enum with Entity Framework DB First
body: <p>I am using Entity Framework 5, DB first.  I know how to define an enum on my model, and set the type of a field to that enum.</p>
  
  <p>Now, I have a requirement to map a field <code>MyField</code> to an enum that is defined externally, i.e. not in the EF model (<code>OtherNamespace.MyEnum</code>).  The designer does not allow me to set the type to anything outside the model.  I tried editing the edmx file manually, but that causes an error:</p>
  
  <blockquote>
    <p>Error 10016: Error resolving item 'MyField'. The exception message is: 'Unresolved reference 'OtherNamespace.MyEnum'.'.</p>
  </blockquote>
  
  <p><code>OtherNamespace.MyEnum</code> is referenced by my project.</p>
  
  <p>How do you do it?</p>