in linq will be something like: queryable.Where(entity => entity.Bs.OfType<B1>().Any(b1 => b1.Property == xx ))
?? 2010/12/27 Diego Mijelshon <[email protected]> > He wants to filter on properties of B1... > > Diego > > > > On Mon, Dec 27, 2010 at 08:17, Fabio Maulo <[email protected]> wrote: > >> GetType() == typeof(xy) >> a is Xy >> >> -- >> Fabio Maulo >> >> >> El 27/12/2010, a las 04:18, Stefano <[email protected]> escribió: >> >> > Yes, in hql I already did it, with Criteria there should be a way, in >> > QueryOver I didn't found it >> > >> > On Dec 27, 3:56 am, Diego Mijelshon <[email protected]> wrote: >> >> I don't think it's possible (maybe it is, I can't say with 100% >> certainty). >> >> >> >> I can think of a way of doing it with HQL, though. >> >> >> >> Diego >> >> >> >> >> >> >> >> On Sun, Dec 26, 2010 at 19:43, Stefano <[email protected]> wrote: >> >>> Hi all, >> >>> I have a class A that contains a polymorphic collection based of type >> >>> B, inherited by B1 and B2. >> >>> B1 has specific properties. >> >> >> >>> Is it possible with QueryOver to write a query on type A joined to the >> >>> collection, restricting it to a particular value of one of the >> >>> properties of B1? >> >> >> >>> -- >> >>> You received this message because you are subscribed to the Google >> Groups >> >>> "nhusers" group. >> >>> To post to this group, send email to [email protected]. >> >>> To unsubscribe from this group, send email to >> >>> [email protected]<nhusers%[email protected]> >> <nhusers%[email protected]<nhusers%[email protected]>> >> >>> . >> >>> For more options, visit this group at >> >>> http://groups.google.com/group/nhusers?hl=en. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "nhusers" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> [email protected]<nhusers%[email protected]> >> . >> > For more options, visit this group at >> http://groups.google.com/group/nhusers?hl=en. >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "nhusers" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<nhusers%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/nhusers?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
