title: How to convert IQueryable to DataTable
body: <p>I wrote the query using LinQ and I used the <code>CopyToDataTable</code> method. At that line it is showing implicit conversion type error from my database type to <code>System.Data.DataRow</code>.</p>
  
  <pre><code>var query = from i in dbContext.Personaldetails
              where i.ID == 1
              select i;
  
              return query.CopyToDataTable();
  </code></pre>
  
  <p>Any suggestions?</p>