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

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

Syntax

Visual Basic (Declaration)
Sub Compile ( _
	replacements As IDictionary, _
	shallow As Boolean _
)
C#
void Compile(
	IDictionary replacements,
	bool shallow
)
Visual C++
void Compile(
	IDictionary^ replacements, 
	bool shallow
)
JavaScript
function compile(replacements, shallow);

Parameters

replacements
Type: System.Collections..::.IDictionary
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