title: How to produce a Subquery using non-generic Lambda
body: <p>How would you translate the following generic Lambda function into a lambda expression : </p>
  
  <pre><code>context.AssociateWith&lt;Product&gt;(p =&gt; p.Regions.Where(r =&gt; r.Country == 'Canada')
  </code></pre>
  
  <p>I'm trying to create a full lambda expression without any <code>&lt;T&gt;</code> or direct call. Something like  :</p>
  
  <pre><code>void AddFilter(ITable table, MetaDataMember relation)
  {
      var tableParam = Expression.Parameter(table.ElementType, "e");
      var prop = Expression.Property(tableParam, relation.Name);
      var func = typeof(Func&lt;,&gt;).MakeGenericType(table.ElementType, relation.type)
      var exp = Expression.Lambda(func, prop, tableParam);
  }
  </code></pre>
  
  <p>This will produce <code>e.Regions</code>... but I'm unable to get the <code>Where</code> part from there...</p>