Implements SQL query passthrough
Namespace: NHibernate.ImplAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public class SqlQueryImpl : AbstractQueryImpl, ISQLQuery, IQuery |
Visual Basic |
---|
Public Class SqlQueryImpl _ Inherits AbstractQueryImpl _ Implements ISQLQuery, IQuery |
Visual C++ |
---|
public ref class SqlQueryImpl : public AbstractQueryImpl, ISQLQuery, IQuery |
Examples
An example mapping is:
CopyC#
<sql-query-name name="mySqlQuery"> <return alias="person" class="eg.Person" /> SELECT {person}.NAME AS {person.name}, {person}.AGE AS {person.age}, {person}.SEX AS {person.sex} FROM PERSON {person} WHERE {person}.NAME LIKE 'Hiber%' </sql-query-name>