title: LINQ to Entities error on ToList with a one-to-many attribute
body: <p>Whenever I try to run the following code</p>
  
  <pre><code>        employees = from e in this.entities.employees select e;
          var ett = (from e in employees where 
                        (e.salaries.ToList().Where(i =&gt; i.to_date.Year == 9999).First().salary1 &gt; TT) 
                    select e);
  
          var etf = (from e in employees
                    where
                        (e.salaries.ToList().Where(i =&gt; i.to_date.Year == 9999).First().salary1 &lt; TT &amp;&amp;
                        e.salaries.ToList().Where(i =&gt; i.to_date.Year == 9999).First().salary1 &gt; TF)
                    select e);
  
          foreach (employee e in ett)
          {
              this.members.memberships.AddObject(new membership
              {
                  FirstName = e.first_name,
                  LastName = e.last_name,
                  MembershipClass = "regular",
                  VerificationCode = "abc1234"
              });
          }
  
          foreach (employee e in etf)
          {
              this.members.memberships.AddObject(new membership
              {
                  FirstName = e.first_name,
                  LastName = e.last_name,
                  MembershipClass = "regular",
                  VerificationCode = "abc1234"
              });
          }
  </code></pre>
  
  <p>i get the following error:</p>
  
  <pre><code>LINQ to Entities does not recognize the method 'System.Collections.Generic.List`1[app.salary] ToList[salary](System.Collections.Generic.IEnumerable`1[app.salary])' method, and this method cannot be translated into a store expression.
  </code></pre>
  
  <p>The Employee class does maintain a one-to-many relationship to salary. As far as I can read, the errors refer to a .ToList() method call, but removing them has not solved the problem.</p>
  
  <p>EDIT: added more code, hopefully that helps.</p>