Create a new instance of
IQuery for the given SQL string.
Namespace:
NHibernate
Assembly:
NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
<ObsoleteAttribute("Use CreateSQLQuery().AddEntity()")> _
Function CreateSQLQuery ( _
sql As String, _
returnAliases As String(), _
returnClasses As Type() _
) As IQuery |
JavaScript |
---|
function createSQLQuery(sql, returnAliases, returnClasses); |
Parameters
- sql
- Type: System..::.String
a query expressed in SQL
- returnAliases
- Type: array<
System..::.String
>[]()[]
an array of table aliases that appear inside {} in the SQL string
- returnClasses
- Type: array<
System..::.Type
>[]()[]
the returned persistent classes
Return Value
An
IQuery from the SQL string
See Also