This is a recent question raised in NHibernate Users Group. The user wanted to realize the following query with Criteria api.
var result = db.Person.Where(x => x.Pets.Count > 0 && x.Alive) .OrderBy(x => x.Name);
This is not a simple query, but it has a solution
No comments yet, be the first one to post comment.