title: How to get data as DataSet from stored procedure in Entity Framework
body: <p>I'm using Entity Framework with asp.net.</p>
  
  <p>I add the my database and stored procedure to the ADO.net entity data model.</p>
  
  <p>I want get data from the stored procedure preprocessed as DataTable. I create the function import.</p>
  
  <p><img src="https://i.stack.imgur.com/6nVZ3.png" alt="enter image description here"></p>
  
  <p>and I call it like this</p>
  
  <pre><code>DataTable user= db.f_GetbyUser((Guid)User.UserId);
  </code></pre>
  
  <p>But there is error and it says</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'System.Data.Objects.ObjectResult' to 'System.Data.DataSet'</p>
  </blockquote>
  
  <p>So can you please tell me how can I run the stored procedure and get the data as data set</p>