title: LINQ to SQL in c# and database access
body: <p>I do not know how to ask this question. So I will just give an example.</p>
  
  <p>Code: </p>
  
  <pre><code>var db = new dbContext();
  var dlo = new DataLoadOptions()
  
  dlo.LoadWith&lt;Order&gt;(x =&gt; x.Company);
  db.LoadOptions = dlo;
  var compIds = prms.companies.Select(x =&gt; x.Id).ToArray();
  </code></pre>
  
  <p>as I understand with above code I load Company from Order table and then getting companies by their ID's. Is it same as</p>
  
  <pre><code>var compIds = (from it in context.GetTable&lt;Order&gt;()
                         select it.Company.Id).ToArray();
  </code></pre>
  
  <p>? Or am I totally confusing two different concepts?</p>