title: Entity Framework 4.1 Persisting a getter
body: <p>Lots of Like for EF4.1, but have got stuck on doing this!</p>
  
  <p>I want to end up with a class like this, where EF handles both properties, and they are both in the database.</p>
  
  <pre><code>public class myClass 
  {
      public int priority { get; set; }
      public string status { get { return priority &gt; 10 ? "Low" : "High" } }
  }
  </code></pre>
  
  <p>1) When I generate the model from the database, I need to somehow inject the status calculation into its property.<br>
  2) Hopefully the solution works when I regenerate my model from the database.</p>