title: Constrain nvarchar columns in entity framework codefirst?
body: <p>I am writing an application that makes use of entity framework.</p>
  
  <p>One of my tables is called <code>Individuals</code>, it needs a column <code>Sex</code> which should only allow the values <code>Male</code>, <code>Female</code> or <code>Unknown</code>.</p>
  
  <p>How should this be implemented with entity framework? Of course, I can just restrict the input that the user is allowed to enter, but I'd like there to be a constraint on the database also.</p>