Compile a "normal" query. This method may be called multiple times. Subsequent invocations are no-ops.
Namespace:
NHibernate.HqlAssembly: 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
Exception | Condition |
---|---|
NHibernate..::.QueryException | There was a problem parsing the query string. |
NHibernate..::.MappingException | There was a problem querying defined mappings. |