private GroupAggregationCollection Aggregate(GroupAggregationMethod method, string name, string alias = null) { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException(nameof(name)); } _members.Add(new GroupAggregation(GroupAggregationMethod.Count, name, alias)); return(this); }
public GroupAggregation(GroupAggregationMethod method, string name, string alias) { this.Method = method; this.Name = name; this.Alias = alias; }