Obtain an IDbCommand with all parameters pre-bound. Bind positional parameters,
named parameters, and limit parameters.
Namespace: NHibernate.LoaderAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
protected internal virtual IDbCommand PrepareQueryCommand( QueryParameters queryParameters, bool scroll, ISessionImplementor session ) |
Visual Basic |
---|
Protected Friend Overridable Function PrepareQueryCommand ( _ queryParameters As QueryParameters, _ scroll As Boolean, _ session As ISessionImplementor _ ) As IDbCommand |
Visual C++ |
---|
protected public: virtual IDbCommand^ PrepareQueryCommand( QueryParameters^ queryParameters, bool scroll, ISessionImplementor^ session ) |
Parameters
- queryParameters
- 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.