Nhibernate could not resolve property exception when using QueryOver, works on QueryAll
问题 I have the following problem Basically I have the 2 snippets below: var contactAssociation = session.QueryOver<ContactAssociation>(() => contactAssociationAlias) .Where(() => contactAssociationAlias.Contact.ID == careGiverId && contactAssociationAlias.Client.ID == clientKey) .Where(() => contactAssociationAlias.AclRole.RoleName == "Care Giver") .SingleOrDefault(); and var contactAssociation = session.Query<ContactAssociation>() .Where(cr => cr.Contact.ID == careGiverId && cr.Client.ID ==