Method AverageOperand(AggregateFunction, string, FieldInfo?)
The expression AVG is taken over. For a field stored in an integer or numeric column it is
cast to decimal: T-SQL keeps the type of the operand, so AVG over bigint returned the average
with its fraction cut off (44 for 44.5). Any other function, and a field that is not a
number, get the expression back unchanged.
public static string AverageOperand(AggregateFunction function, string expression, FieldInfo? field)