Michael, The reason he thinks so is that it is actually different in queries sometimes, like it helps avoiding some duplicates and so. I tend to say it is the recommended default (but not only option) for collections.
However, I still agree it's not related to your case. Just add the test (with Set so that NH team doesn't have multiple suspects) to a gira ticket. For the actual problem that produced this, you may try two queries with "Future" to batch them.and matching in DB, or a manual Join and then later grouping in code also. *Mohamed Meligy *Readify | Senior Developer M:+61 451 835006 | W: readify.net [image: Description: Description: Description: Description: rss_16]<http://gurustop.net> [image: Description: Description: Description: Description: cid:[email protected]] <http://www.linkedin.com/in/meligy> [image: Description: Description: Description: Description: cid:[email protected]] <http://twitter.com/meligy> <http://www.greatplacetowork.com.au/best/best-companies-australia.php><http://www.readify.net/AboutUs/NewsItem.aspx?id=10> On Tue, May 31, 2011 at 7:37 PM, Michael Teper <[email protected]>wrote: > Ricardo, I included the mappings at the start of the thread. The > mapping is for a bag, but if I substitute "set" and update the class > definition accordingly with ISet / HashedSet, I end up with the same > result. (incidentally, why would set and bag behave differently? is > there an open JIRA case?) > > Thank you! > -Michael > > On May 29, 8:35 am, Ricardo Peres <[email protected]> wrote: > > Can you sent your mappings? Using a set should have done it, it is a > > known issue. > > > > On May 29, 7:37 am, Michael Teper <[email protected]> wrote: > > > > > > > > > I have tried with both a set and a bag, no difference. How do you > > > apply a transformer to a LINQ query? > > > > > -Michael > > > > > On May 27, 2:11 am, Ricardo Peres <[email protected]> wrote: > > > > > > I think that's because you are using a bag. Try using a set instead, > > > > it is a little change. > > > > Otherwise, you will have to use the DistinctRootTransformer. > > > > > > RP > > > > > > On May 27, 9:22 am, Michael Teper <[email protected]> wrote: > > > > > > > Except that I don't. I end up with *four* operations, *each* with > four > > > > > steps. > > > > > > > -Michael > > > > > > > On May 26, 7:39 pm, Darren Kopp <[email protected]> wrote: > > > > > > > > That is working correctly. Since you want to load all of the > child items, > > > > > > you are getting all the child items, and you also have the data > for the > > > > > > parent entity. nhibernate will rehydrate it into the correct form > so that > > > > > > you'll have 1 operation with 4 steps using 1 query.- Hide quoted > text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text - > > -- > 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. > > -- 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.
