title: Can't get data out using SQL query in Entity Framework
body: <p>I'm trying to use the following SQL query to get the first two columns of data out of my database: </p>
  
  <pre><code>SELECT  Id, DomainUrl
  FROM    ( SELECT    ROW_NUMBER() OVER ( ORDER BY Id ) AS RowNum, Id, DomainUrl
            FROM      SiteDatas
          ) AS RowConstrainedResult
  WHERE   RowNum &gt;= 1
      AND RowNum &lt;= 10
  ORDER BY RowNum
  </code></pre>
  
  <p>I'm using entity framework and passing in parameters for the rows so that it can later be used as a scroll on load function via ajax. However I am getting an error when I get to the line:</p>
  
  <pre><code>var stores = db.SiteDatas.SqlQuery(SQL, parameters).ToList();
  </code></pre>
  
  <p>It's an entity command execution exception that is stating that the data reader is incompatible with the specified model (my db) member of the type, 'Robots' (which is the next column after the one I am calling), does not have a corresponding column in the data reader with the same name.</p>
  
  <p>How would I go about getting just the first two columns out in a way that can be serialized as json?</p>