title: F# How to use preload child records using Sql Type Provider
body: <p>I'm using the F# SqlDataConnection data provider to access a database. The code works fine except that it goes to the database for every single nested record. How do I get the query to prefetch some of these records</p>
  
  <pre><code>module Local =
      type Db = SqlDataConnection&lt;"Server=.;Database=CCTFundDb;Trusted_Connection=True"&gt;
      let db = 
          let ctx = Db.GetDataContext()
          let dataOptions = Data.Linq.DataLoadOptions()
          dataOptions.LoadWith&lt;Db.ServiceTypes.MemberSubscriptions&gt;(fun p-&gt;p.AccountingBooks.AccountingBookEntries |&gt; box)
          ctx.DataContext.LoadOptions &lt;- dataOptions
          ctx
      let _ =  db.DataContext.Log &lt;- Console.Out
  </code></pre>
  
  <p>If I remove the <code>|&gt; box</code>, it gives the error that it is expecting <code>obj</code>. When I execute in fsx, it complains about the expression.</p>
  
  <p>How do I do this? If it is not possible, is there another type provider that supports loading the data in batches?</p>