NHibernate QueryOver association does not contain item
could someone help me to translate LINQ expression to Nhibernate QueryOver from m in messages where !m.Recipients.Any(rcpt => rcpt.IsDeleted && rcpt.User = user) I tried this var qry = Session.QueryOver<UserMessage>(); qry.Where(m => m.Recipients.Any(r => !r.IsDeleted && r.User == user)); but got System.Exception : Unrecognised method call: System.Linq.Enumerable:Boolean Any[TSource](System.Collections.Generic.IEnumerable 1[TSource], System.Func 2[TSource,System.Boolean] !m.Recipients.Any(...) translates to a "not exists" sub-query. You will need a couple of aliases to correlate the sub-query