title: Using System.Data.Linq in a Razor view
body: <p>I may have a fundamental misunderstanding of what is going on here, but I'm having an issue looping through a LinqToSQL class in my razor view:</p>
  
  <pre><code>&lt;h3&gt;Owners&lt;/h3&gt;
  @foreach (var ThisOwner in Prop.PropertyOwnerships.Where(p=p.bIsOwner.Value==true))
  {
  &lt;div class="ODEditEntry"&gt;
  ...
  </code></pre>
  
  <p>I'm getting the following error:</p>
  
  <p>Compiler Error Message: CS0012: The type 'System.Data.Linq.EntitySet`1' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.</p>
  
  <p>I tried putting @using System.Data.Linq at the top of the cshtml file but it is telling me that Linq doesn't exist in the System.Data namespace.  This is obviously not true and, yes, I do have system.data.linq as a reference in my project.</p>
  
  <p>Any Ideas here?  Is a import needed?  Can I just not do Linq style stuff in my razor views?  That would seem....odd?</p>