Compile a "normal" query. This method may be called multiple times. Subsequent invocations are no-ops.

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

Syntax

C#
void Compile(
	IDictionary<string, string> replacements,
	bool shallow
)
Visual Basic
Sub Compile ( _
	replacements As IDictionary(Of String, String), _
	shallow As Boolean _
)
Visual C++
void Compile(
	IDictionary<String^, String^>^ replacements, 
	bool shallow
)

Parameters

replacements
Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, String>)>)>
Defined query substitutions.
shallow
Type: System..::..Boolean
Does this represent a shallow (scalar or entity-id) select?

Exceptions

ExceptionCondition
NHibernate..::..QueryExceptionThere was a problem parsing the query string.
NHibernate..::..MappingExceptionThere was a problem querying defined mappings.

See Also