title: ServiceStack LoadReferences when using SQL Query
body: <p>Is it possible to Load References when instead of using the code below:</p>
  
  <pre><code>SqlExpression&lt;Customer&gt; q = db.From&lt;Customer&gt;();
  q.Join&lt;Customer,CustomerAddress&gt;((cust,address) =&gt; cust.Id == address.CustomerId);
  
  List&lt;Customer&gt; dbCustomers = db.LoadSelect(q);
  </code></pre>
  
  <p>Using this:</p>
  
  <pre><code>public class KpiTotal : IKpiTotal
  {
      public DateTime Date { get; set; }
  
      public int TeamId { get; set; }
      public Team Team { get; set; }
  
      public int AccountId { get; set; }
      public Account Account { get; set; }
  
      public double Total { get; set; }
  }
  
  var result = dbCon.SelectFmt&lt;KpiTotal&gt;(@"select convert(date, t.TransactionDate) [Date], tm.TeamId,a.AccountNumber, count(distinct(t.RequisitionNumber)) Total
                                      from task.tblTransactions t
                                      inner join task.tblRequisitions r on r.RequisitionNumber = t.RequisitionNumber
                                      inner join task.tblAccounts a on a.AccountNumber = r.AccountNumber
                                      inner join Team tm on tm.DivisionId = a.DivisionId
                                      where t.TransactionTypeNumber = 201 and a.IsActive = 1 
                                      and t.TransactionDate between {0} and {1}
                                      group by convert(date, t.TransactionDate), tm.TeamName, a.AccountName
                                      order by 1,2 desc", dateRange.Start, dateRange.End);
  </code></pre>
  
  <p>Because my result object (KpiTotal) has references to two child tables, and I would like to automatic load the references, instead of getting it with a foreach block.</p>