Refer to this article for description and operation templates. Refer to this article for base sample of querying with NHibernate.
Code samples of how to query using older and new NHibernate querying methods, namelly: HQL – First query method implemented on first version of NHibernatem as a SQL-like language and based on static strings; Criteria Queries – An object-like query … Continue reading
The API Criteriais a object-like way for building dynamic runtime queries. Property names are parameterized as strings. The NHibernate.Criterion namespace is used