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
ScalarProjectionQuery<Blog, int> proj = new ScalarProjectionQuery<Blog, int>(Projections.RowCount()); int rowCount = proj.Execute(); |
Inheritance Hierarchy
See Also
Castle.ActiveRecord.Queries Namespace