示例#1
0
        protected virtual string BuildGroupByField(GroupBy groupby)
        {
            string field = string.Empty;

            if (string.IsNullOrWhiteSpace(groupby.Function))
            {
                field = string.Format(genericGroupByField, groupby.TableAlias, groupby.FieldName);
            }
            else
            {
                field = string.Format(genericGroupByFunction, groupby.Function, groupby.GetUniqueParameter());
            }

            return(field);
        }