I am trying to select the children from a parent collection using QueryOver in nhibernate. This is what I am trying to do in HQL:
SELECT as_kitten FROM Cat as_Cat
JOIN as_Cat.Kittens as_kitten
How does this translate to QueryOver or even using JoinAlias?
IList<Kitten> kittens = session.QueryOver<Cat>()
.JoinQueryOver<Kitten>(c => c.Kittens)
.Select(??)
.List()
The closest thing I could find so far is NHibernate QueryOver
Cheers
EDIT Assuming this is a one way relationship, ie. kittens dont' know about cat