title: Return Anonymous Type using SqlQuery RAW Query in Entity Framework
body: <p>How can I make Entity Framework SqlQuery to return an Anonymous type.</p>
  
  <p>Right now I run a <code>context.TheObject.SqlQuery()</code> RAW query. the query joins two tables and I want to return the results of the joined tables.</p>
  
  <p>If I use it with a type <code>context.TheObject.SqlQuery()</code> I only get to see the results of the table of that same type.</p>
  
  <p>I tried <code>db.Database.SqlQuery&lt;DbResults&gt;("the sql query here")</code>; With a pre-defined class that matches the result's objects, but all the fields are null.</p>
  
  <p>Using Entity Framework 6 with MySQL.</p>