For an individual entity, it is easy: var foo = session.Get<Foo>(id); var count = session.CreateFilter(foo.Bars, "select count(*)").UniqueResult<int>();
Not sure if this is what you wanted, though. RP -- 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. For more options, visit https://groups.google.com/d/optout.
