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) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
ICriteria SetProjection( params IProjection[] projection ) |
Visual Basic |
---|
Function SetProjection ( _ ParamArray projection As IProjection() _ ) As ICriteria |
Visual C++ |
---|
ICriteria^ SetProjection( ... array<IProjection^>^ projection ) |
Parameters
- projection
- Type: array<NHibernate.Criterion..::..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.