title: Web API 2: OData 4: Possible bug with GUIDs?
body: <p>I've updated my solution to use <code>OData v4</code> for <code>Web API 2</code> - I was previously using<code>OData v3</code>. For some reason, some of the routes are giving a 404 error where they were working perfectly fine before. These routes are anything with the entity key/ID.. example:</p>
  
  <pre><code>[EnableQuery]
      public virtual SingleResult&lt;TEntity&gt; Get([FromODataUri] TKey key)
      {
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public virtual IHttpActionResult Delete([FromODataUri] TKey key)
          {
  </code></pre>
  
  <p>As I said, they were working perfectly fine before, but now I am getting a 404 for these. Other routes, such as below, are fine:</p>
  
  <pre><code>[EnableQuery]
          public virtual IQueryable&lt;TEntity&gt; Get()
          {
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public virtual IHttpActionResult Post(TEntity entity)
          {
  </code></pre>
  
  <p>Note that my entities are sending <code>GUID</code>s for the ID. Is there maybe a bug with <code>GUID</code>s in <code>OData 4</code>?</p>