title: Return a list of entities with OData & Entity Framework
body: <p>I have an OData method and I want to return a List of entities from that method.</p>
  
  <p>This is my code</p>
  
  <pre><code>public async Task&lt;IHttpActionResult&gt; LoadSpecimenMachinings([FromODataUri] Int32 key)
  {
      if (!ModelState.IsValid)
          return BadRequest(ModelState);
  
      Int32 stage = 1;
      string csvSpecimenCodes = "S0,S1,S2";
  
      List&lt;Machining&gt; machinings = null;
      var machiningResult = db.LoadSpecimenMachinings(key, stage, csvSpecimenCodes);
      machinings = (from machining in machiningResult select machining).ToList();
  
      return Created(machinings);
  }
  </code></pre>
  
  <p>When I returned a List of entities (Machining is an entity in my Entity Framework Model) in the line <code>return Created(machinings);</code> I received the following error:</p>
  
  <pre><code>"message":" is not an entity type. Only entity types are supported.",
  "type":"System.InvalidOperationException"
  </code></pre>
  
  <p>As I understand, unfortunately <code>Created</code> cannot receive a List of Entities as parameter.
  Is there any way to return a list of entities and a Created HTTP Code in OData ?</p>
  
  <p>I am using OData V3 and Entity Framework 6.</p>