Noob question: How to make a criteria on the count of an association?

Posted by André Pena on Stack Overflow See other posts from Stack Overflow or by André Pena
Published on 2010-04-15T02:58:31Z Indexed on 2010/04/15 3:03 UTC
Read the original article Hit count: 246

Filed under:
|
|

I'm starting with NHibernate.

I have a type called Person which has a collection of Address.

How do I fetch:

All people with at least 2 addresses

using ICriteria? Thanks in advance.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#