title: How to specify a property as calculated in Entity Framework?
body: <p>In examples from Microsoft, they implicitly defined a calculated property by providing only accessor without mutator:</p>
  
  <pre><code>public string NormalProperty { get; set; }
  public string CalculatedProperty
  {
      get { return "foobar" + NormalProperty; }
  }
  </code></pre>
  
  <p>I also want to have a mutator in CalculatedProperty, which automatically trims the "foobar" suffix and assigns the result back into NormalProperty.</p>
  
  <pre><code>public string CalculatedProperty
  {
      get { return "foobar" + NormalProperty; }
      set { NormalProperty = value.Substring(6); }
  }
  </code></pre>
  
  <p>The issue is, Entity Framework now considers CalculatedProperty a normal property, and create a column named "CalculatedProperty" in the database.</p>
  
  <p>I do not want to workaround with this by using functions. Can it be done through Attributes/Fluent API? I am using EF 6.1.</p>