Add the specified HQL query to the multi query, and associate it with the given key

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

Syntax

C#
IMultiQuery Add(
	string key,
	IQuery query
)
Visual Basic
Function Add ( _
	key As String, _
	query As IQuery _
) As IMultiQuery
Visual C++
IMultiQuery^ Add(
	String^ key, 
	IQuery^ query
)

Parameters

key
Type: System..::..String
The key to get results of the specific query.
query
Type: NHibernate..::..IQuery
The query

Return Value

The instance for method chain.

See Also