Microsoft ODataController response with @odata.context
<p>I'm using these packages:</p>

<pre><code>&lt;package id="Microsoft.AspNet.Mvc" version="5.0.0" targetFramework="net45" /&gt;
&lt;package id="Microsoft.AspNet.Razor" version="3.0.0" targetFramework="net45" /&gt;
&lt;package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net45" /&gt;
&lt;package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" /&gt;
&lt;package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net45" /&gt;
&lt;package id="Microsoft.AspNet.WebApi.OData" version="5.7.0" targetFramework="net45" /&gt;
&lt;package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net45" /&gt;
&lt;package id="Microsoft.AspNet.WebPages" version="3.0.0" targetFramework="net45" /&gt;
&lt;package id="Microsoft.Data.Edm" version="5.6.0" targetFramework="net45" /&gt;
&lt;package id="Microsoft.Data.OData" version="5.6.0" targetFramework="net45" /&gt;
</code></pre>

<p>I inserted an ODataController using this technique:</p>

<ol>
<li>Right-click on Controller folder,  "Add Controller" </li>
<li>Choose from "Add Scaffold" list the "Web API 2 ODataController with actions, using
Entity Framework" </li>
<li>Choose the appropriate Model and context for this
ODataController </li>
<li>Modify WebApiConfig.cs according to the inserted
template</li>
</ol>

<p>When I hit my controller, the result does not include the <code>@odata.context</code> property, which throws off the <a href="https://github.com/devnixs/ODataAngularResources/blob/8745ec831d8b627e52be1e37c86ab867af673f62/src/odataresources.js#L364" rel="nofollow">angular-odataresources library I'm using</a></p>

<p>The response only includes these two properties:
<code>{odata.metadata: "...", value: [...]}</code></p>

<p>How can I make the ODataController  respond with @odata.context property?</p>

<p>I tried using this, but no change in response:
<code>$format=application/json;</code><strong><code>odata.metadata=full</code></strong></p>

<p><strong>Update</strong></p>

<p>I just found <a href="https://msdn.microsoft.com/en-us/library/dn260745.aspx" rel="nofollow">this link</a>
Specifically:</p>

<blockquote>
  <p>The name of the odata.context annotation is "odata.metadata" and is
  written without the leading "@"</p>
</blockquote>

<p>Does this mean I cannot make ODataController return <code>@odata.context</code>?</p>

<p>As a workaround I can always change the Javascript which is thrown off.</p>