Add a named 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 AddNamedQuery(
	string key,
	string queryName
)
Visual Basic
Function AddNamedQuery ( _
	key As String, _
	queryName As String _
) As IMultiQuery
Visual C++
IMultiQuery^ AddNamedQuery(
	String^ key, 
	String^ queryName
)

Parameters

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

Return Value

The instance for method chain.

See Also