Like this? session.Query<Product>().Where(x => (session.Query<Customer>().Select(y => y.Name)).Contains(x.Name)).ToList();
On Thursday, May 2, 2013 12:24:10 PM UTC+1, Sean Farrow wrote: > > Hi folks, > > > > I’m writing an application that brings back a set of string ids from one > table using a linq query. I then need to query another table for all ids in > the IEnumerable from the first table. > > Whilst I could do a foreach through the IEnumerable and perform separate > linq queries is there a way of batching the query and just performing one > query that looks for any item in the IEnumerable in the second table. > > Any help appreciated. > > Cheers > > Sean. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
