Refer to this article for description and operation templates. Refer to this article for base sample of querying with NHibernate.
The QueryOver API combines the use of extension methods and lambda expressions (introduced on Net 3.5) to provide statically typesafe wrapper around the ICriteria API in order to remove the obligation of use of strings to express properties, filters, etc. … Continue reading
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
Refer to this article for description and operation templates. Refer to this article for base samples of querying with NHibernate.
Queries can be native in the SQL dialect of ther database. It also provides a clean migration path from a direct SQL/ADO.NET based application to NHibernate.
H(ibernate) Q(uery) L(anguage) is a provider neutral SQL-like language. It has advanced capabilities and is defined as a static string.
The API Criteriais a object-like way for building dynamic runtime queries. Property names are parameterized as strings. The NHibernate.Criterion namespace is used