Creates a new IQueryOver{T} for the entity class.

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

Syntax

C#
IQueryOver<T, T> QueryOver<T>(
	string entityName,
	Expression<Func<T>> alias
)
where T : class
Visual Basic
Function QueryOver(Of T As Class) ( _
	entityName As String, _
	alias As Expression(Of Func(Of T)) _
) As IQueryOver(Of T, T)
Visual C++
generic<typename T>
where T : ref class
IQueryOver<T, T>^ QueryOver(
	String^ entityName, 
	Expression<Func<T>^>^ alias
)

Parameters

entityName
Type: System..::..String
The name of the entity to Query
alias
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T>)>)>>)>)>
The alias of the entity

Type Parameters

T
The entity class

Return Value

An IQueryOver{T} object

See Also