title: Using ADO.net Entity Framework 4 with Enumerations? How do I do it?
body: <p>Question 1: I am playing around with EF4 and I have a model class like :</p>
  
  <pre><code>public class Candidate {
  
  public int Id {get;set;}
  public string FullName {get;set;}
  public Gender Sex {get;set;}
  public EducationLevel HighestDegreeType {get;set;}
  }
  </code></pre>
  
  <p>Here Gender and EducationLevel are Enums like:</p>
  
  <pre><code>public enum Gender {Male,Female,Undisclosed}
  public enum EducationLevel {HighSchool,Bachelors,Masters,Doctorate}
  </code></pre>
  
  <p>How do I get the Candidate Class and Gender and EducationLevel working with EF4 if:</p>
  
  <ul>
  <li>I do model first development </li>
  <li>I do db first development</li>
  </ul>
  
  <p>Edit: Moved question related to object context to another question <a href="https://stackoverflow.com/questions/2065796/objectcontext-never-derives-from-an-interface-do-do-you-apply-di-ioc-in-case-of">here</a>.</p>