title: Using POCO as a parameter object for EntityFramework stored procedure
body: <p>I would like to use a class example:</p>
  
  <pre><code>public class ClassA
  {
       public int ID {get;set;}
       public string Name {get;set;}
  }
  </code></pre>
  
  <p>as a parameter object to be passed to a stored procedure.</p>
  
  <p>this would be a sample of my call</p>
  
  <pre><code>List&lt;ClassB&gt; result = this.Database.SqlQuery&lt;ClassB&gt;("GetSomeList", ClassA).ToList&lt;ClassB&gt;();
  </code></pre>
  
  <p>The parameter names in the stored procedure would match the properties of "ClassA".</p>
  
  <p>If I remove the parameters object (ClassA) the call works fine and returns correct results.  I would prefer to not use Entityframework designer or add any DB attributes to my entities as they are reusable components. 
  Also if this parameters object can be used to hold Output parameters that would be nice as well.
  I haven't found any good documentation for using POCO as a parameters object.</p>
  
  <p>This is with EntityFramework6 MVC5 </p>