DomainObjects Class Library

Average Constructor (Field, Boolean)

Returns the average of the values in a group where the given field evaluates to a non-null value. Translates to a AVG([DISTINCT] field) SQL function.

public Average(
   Field field,
   Boolean distinct
);

Parameters

field
The database value in the group to average.
distinct
If true, then duplicate database values will not be included in the average.

See Also

Average Class | DomainObjects.Facade.Command.Function Namespace | Average Constructor Overload List