QueryOver ProjectionList with different root entity types
问题 I'm having issues trying to reuse ProjectionLists in NHibernate QueryOvers. I can't work out how to reuse things for different root entities. Object model is roughly represented as: Breakfast one to many Pastry many to zero-or-one Coffee The two separate queries are roughly: session.QueryOver<Breakfast>() .Where(b => b.Id == searchId) .Inner.JoinQueryOver(b => b.Pastries, () => pastry) .Left.JoinAlias(p => p.Coffee, () => coffee) .Select(projections) .TransformUsing(Transformers.AliasToBean