title: Trying to serialize [NotMapped] Entity Framework property for use by Breeze
body: <p>This is a bit of a convoluted problem, so bear with me. We are currently using Entity Framework 6.1.1 on our server with OData 5.6, and Breeze JS 1.5.4 on the client side. In short, we're having issues getting [NotMapped] properties on our Model to serialize into json and get passed to the client.</p>
  
  <p>Here is our Model:</p>
  
  <pre><code>public class Request 
  {
      ...
      public int UserId { get; set; }
  
      [NotMapped]
      public string UserName {get; set; }
  }
  </code></pre>
  
  <p>Because we're using OData, rather than being serialized through the default <code>JsonMediaTypeFormatter</code>, it goes through the <code>OdataMediaTypeFormatter</code> which completely ignores anything with the <code>[NotMapped]</code> attribute.
  We could work around this problem by manually adding the properties to the <code>modelBuilder</code>. However this becomes an issue when trying to integrate with Breeze, because they have their own custom EdmBuilder that must be used for things like navigable properties to be preserved, and we cannot use the standard <code>ODataConventionModelBuilder</code>. This custom builder doesn't seem to allow for any level of control over the models. Is it at all possible to force OData to properly serialize these properties and also keep metadata that's complaint with Breeze? Has anyone tried something similar before?</p>
  
  <p>Side note:
  We're trying to avoid storing or just making dummy columns in the db for this data, seeing as we need 5 of these properties, but this may wind up being our course of action if we dump too much more time into this.</p>
  
  <p>Thanks in Advance</p>