6
shouts

Querying on Child Count With NHibernate - Tuna Toksoz - Devlicio.us

posted by StevesSteves 252 days, 3 hours, 57 minutes ago
Friday, July 10, 2009 11:18:55 AM GMT

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

category: Architecture | clicked: 1 | | source: devlicio.us | show counter code
tags: NHibernate