title: Nested lambda expressions and string cultures
body: <p>I'm trying to do a nested lambda expression like to following:</p>
  
  <pre><code>textLocalizationTable.Where(
    z =&gt; z.SpokenLanguage.Any(
      x =&gt; x.FromCulture == "en-GB")
    ).ToList();
  </code></pre>
  
  <p>but i get the error:</p>
  
  <pre><code>Member access 'System.String FromCulture' of 
  'DomainModel.Entities.SpokenLanguage' not legal on type
  'System.Data.Linq.EntitySet`1[DomainModel.Entities.SpokenLanguage].
  </code></pre>
  
  <p>TextLocalization has this relation to spokenlanguage:</p>
  
  <pre><code>[Association(OtherKey = "LocalizationID", ThisKey = "LocalizationID", Storage = "_SpokenLanguage")]
  private EntitySet&lt;SpokenLanguage&gt; _SpokenLanguage = new EntitySet&lt;SpokenLanguage&gt;();
  public EntitySet&lt;SpokenLanguage&gt; SpokenLanguage
  {
       set { _SpokenLanguage = value; }
       get { return _SpokenLanguage; }
  }
  </code></pre>
  
  <p>Any idea what is wrong?</p>
  
  <hr>
  
  <p>I have tried your suggestion with the same error.</p>
  
  <p>Spokenlanguage now has this association:</p>
  
  <pre><code>    internal EntityRef&lt;TextLocalization&gt; _TextLocalization;
      [Association(ThisKey = "LocalizationID", OtherKey = "LocalizationID", Storage = "_TextLocalization")]
      public TextLocalization TextLocalization
      {
          get { return _TextLocalization.Entity; }
          internal set { _TextLocalization.Entity = value; LocalizationID = value.LocalizationID; }
      }
  </code></pre>
  
  <p>On the datacontext this is added:</p>
  
  <pre><code>        DataLoadOptions dlo = new DataLoadOptions();
          dlo.LoadWith&lt;TextLocalization&gt;(text =&gt; text.SpokenLanguage);
          dc.LoadOptions = dlo;
  </code></pre>
  
  <p>Any  further ideas? Mayby it just me misunderstood some fundamental stuff??</p>