QueryOver<TRoot> is an API for retrieving entities by composing Expression objects expressed using Lambda expression syntax.

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public interface IQueryOver<TRoot> : IQueryOver
Visual Basic
Public Interface IQueryOver(Of TRoot) _
	Inherits IQueryOver
Visual C++
generic<typename TRoot>
public interface class IQueryOver : IQueryOver

Type Parameters

TRoot

[Missing <typeparam name="TRoot"/> documentation for "T:NHibernate.IQueryOver`1"]

Remarks

CopyC#
IList<Cat> cats = session.QueryOver<Cat>()
    .Where( c => c.Name == "Tigger" )
    .And( c => c.Weight > minWeight ) )
    .List();

See Also