title: Populating child property with Entity Framework SqlQuery
body: <p>Given the following POCO Code First Entities</p>
  
  <pre><code>public class Customer
  {
      public int CustomerId { get; set; }
      public string CustomerTitle { get; set; }
      public string CustomerFirstName { get; set; }
      public string CustomerLastName { get; set; }
  
      public ICollection&lt;Order&gt; Orders { get; set; }
  }
  
  public class Order
  {
     public int OrderId { get; set; }
     ...
     public int CustomerId { get; set; }
  
     public Customer Customer { get; set; }
  }
  </code></pre>
  
  <p>Using linq you can get the Orders filled in by using the Include property as in</p>
  
  <pre><code>var cust = (from cust in context.Customer
              where cust.CustomerId == 1
              select cust)
              .Include(ord =&gt; ord.Orders)
              .FirstOrDefault();
  </code></pre>
  
  <p>I am trying to get the same result using paramaterised sql, using</p>
  
  <pre><code>        Customer co =  context.Customer.SqlQuery(
                      @"select [Customer].[CustomerId], 
                               ...
                               [Order].[OrderId] AS [OrderId], 
                               ...
                              from Customer join Order on Customer.CustomerId = Order.CustomerId where Customer.CustomerId = @custid", sqlParm)
                  .FirstOrDefault();
  </code></pre>
  
  <p>How do I get the Orders in co.Orders to be populated with the above command, it seems like I can't use the Include statement with SqlQuery. This is a very simplified example for illustrative purposes only, the actual queries will be more involved.</p>