Perform a scalar projection ( aggeregate ) type of query: avg, max, count(*), etc.

Namespace: Castle.ActiveRecord.Queries
Assembly:  Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0

Syntax

C#
public class ScalarProjectionQuery<ARType, TResult> : IActiveRecordQuery

Type Parameters

ARType
The type of the entity we are querying
TResult
The type of the scalar from this query

Examples

CopyC#
ScalarProjectionQuery<Blog, int> proj = new ScalarProjectionQuery<Blog, int>(Projections.RowCount());
int rowCount = proj.Execute();

Inheritance Hierarchy

System..::Object
  Castle.ActiveRecord.Queries..::ScalarProjectionQuery<(Of <ARType, TResult>)>

See Also