I have the following problem
Basically I have the 2 snippets below:
var contactAssociation =
session.QueryOver(() => c
You need to specify a Join in the first query. The LINQ provider in the second query does it automatically for you.
session.QueryOver<ContactAssociation>(() => contactAssociationAlias)
.Where(() =>
contactAssociationAlias.Contact.ID == careGiverId &&
contactAssociationAlias.Client.ID == clientKey)
.JoinQueryOver(() => contactAssociationAlias.AclRole)
.Where(a => a.RoleName == "Care Giver")
.SingleOrDefault();