Used to specify that the query results will be a projection (scalar in
nature). Implicitly specifies the projection result transformer.
Namespace:
NHibernateAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function SetProjection ( _ projection As IProjection _ ) As ICriteria |
C# |
---|
ICriteria SetProjection( IProjection projection ) |
Visual C++ |
---|
ICriteria^ SetProjection( IProjection^ projection ) |
JavaScript |
---|
function setProjection(projection); |
Parameters
- projection
- Type: NHibernate.Expression..::.IProjection
The projection representing the overall "shape" of the query results.
Return Value
This instance (for method chaining)
Remarks
The individual components contained within the given IProjection determines the overall "shape" of the query result.