title: how to return the query result as a specific object type in LINQ
body: <p>Sorry I'm new to LINQ and Entity framework. </p>
  
  <p>When a linq query fetches a whole Entity, 
  how can i return the result as an object type? 
  I mean not just a field but also to return all the fields of that specific record, as one entity.</p>
  
  <p>For example a Staff table in sql. To return a staff object entity.</p>
  
  <p>if i write Linq code like this:</p>
  
  <pre><code>var db= (from c in context.Staff
                            where c.id == sId
                            select new { s.sId,s.staffNo,s.name,s.surname,s.image});
  return db; ---&gt; here 
  </code></pre>
  
  <p>Gives an error because i want to return result as Staff object.</p>
  
  <p>How can it return as a table column object?</p>
  
  <p>Thank you</p>