Obtain an IDbCommand with all parameters pre-bound. Bind positional parameters, named parameters, and limit parameters.

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

Syntax

Visual Basic (Declaration)
Protected Overridable Function PrepareQueryCommand ( _
	parameters As QueryParameters, _
	scroll As Boolean, _
	session As ISessionImplementor _
) As IDbCommand
C#
protected virtual IDbCommand PrepareQueryCommand(
	QueryParameters parameters,
	bool scroll,
	ISessionImplementor session
)
Visual C++
protected:
virtual IDbCommand^ PrepareQueryCommand(
	QueryParameters^ parameters, 
	bool scroll, 
	ISessionImplementor^ session
)
JavaScript
function prepareQueryCommand(parameters, scroll, session);

Parameters

parameters
Type: NHibernate.Engine..::.QueryParameters
The QueryParameters to use for the IDbCommand.
scroll
Type: System..::.Boolean
TODO: find out where this is used...
session
Type: NHibernate.Engine..::.ISessionImplementor
The SessionImpl this Command is being prepared in.

Return Value

A CommandWrapper wrapping an IDbCommand that is ready to be executed.

Remarks

Creates an IDbCommand object and populates it with the values necessary to execute it against the database to Load an Entity.

See Also