Obtain an instance of IQuery for a named query string defined in
the mapping file.
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
IQuery GetNamedQuery( string queryName ) |
Visual Basic |
---|
Function GetNamedQuery ( _ queryName As String _ ) As IQuery |
Visual C++ |
---|
IQuery^ GetNamedQuery( String^ queryName ) |
Parameters
- queryName
- Type: System..::..String
[Missing <param name="queryName"/> documentation for "M:NHibernate.IStatelessSession.GetNamedQuery(System.String)"]
Return Value
[Missing <returns> documentation for "M:NHibernate.IStatelessSession.GetNamedQuery(System.String)"]
Remarks
The query can be either in HQL or SQL format.
Entities returned by the query are detached.