Definition at line 157 of file SystemFunctionsProvider.cs.
Definition at line 158 of file SystemFunctionsProvider.cs.
159 if (context.GroupResolver == null)
160 throw new Exception(
"'count' can only be used as an aggregate function.");
162 int size = context.GroupResolver.Count;
165 if (size == 0 || context.Invoke.IsGlobArgument) {
171 int totalCount = size;
173 var exp = context.Arguments[0];
174 for (
int i = 0; i < size; ++i) {
175 var val = exp.EvaluateToConstant(context.Request, context.GroupResolver.GetVariableResolver(i));
184 return context.Result(result);
static DataObject Integer(int value)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
The documentation for this class was generated from the following file: