52 references to GroupBy
System.Data.Linq (52)
SqlClient\Common\SqlVisitor.cs (3)
440
for (int i = 0, n = select.
GroupBy
.Count; i < n; i++) {
441
select.
GroupBy
[i] = this.VisitExpression(select.
GroupBy
[i]);
SqlClient\Query\QueryConverter.cs (2)
262
sel.
GroupBy
.Count > 0 ||
1584
gsel.
GroupBy
.Add(keySubExpr);
SqlClient\Query\SqlBinder.cs (4)
1152
(select.
GroupBy
.Count > 0 || this.aggregateChecker.HasAggregates(select) || select.IsDistinct)) {
1162
for (int i = 0, n = select.
GroupBy
.Count; i < n; i++) {
1163
select.
GroupBy
[i] = this.VisitExpression(select.
GroupBy
[i]);
SqlClient\Query\SqlBooleanMismatchVisitor.cs (3)
27
for (int i = 0, n = select.
GroupBy
.Count; i < n; i++) {
28
select.
GroupBy
[i] = this.VisitExpression(select.
GroupBy
[i]);
SqlClient\Query\SqlDeflator.cs (14)
148
&& !(select.
GroupBy
.Count == 0 && this.aggregateChecker.HasAggregates(c.Expression));
164
for (int i = select.
GroupBy
.Count - 1; i >= 0; i--) {
165
select.
GroupBy
[i] = this.VisitExpression(select.
GroupBy
[i]);
341
select.
GroupBy
.Count != 0 ||
378
sel.
GroupBy
.Count == 0 &&
392
for (int i = 0, n = select.
GroupBy
.Count; i < n; i++)
394
select.
GroupBy
[i] = this.VisitExpression(select.
GroupBy
[i]);
397
for (int i = select.
GroupBy
.Count - 1; i >= 0; i--)
401
if (SqlComparer.AreEqual(select.
GroupBy
[i], select.
GroupBy
[j]))
403
select.
GroupBy
.RemoveAt(i);
462
select.
GroupBy
.Count != 0 ||
SqlClient\Query\SqlDuplicator.cs (4)
208
if (select.
GroupBy
.Count > 0) {
209
gex = new List<SqlExpression>(select.
GroupBy
.Count);
210
foreach (SqlExpression sqlExpr in select.
GroupBy
) {
230
n.
GroupBy
.AddRange(gex);
SqlClient\Query\SqlFlattener.cs (2)
60
if (select.
GroupBy
.Count > 0) {
61
this.FlattenGroupBy(select.
GroupBy
);
SqlClient\Query\SqlFormatter.cs (3)
814
if (ss.
GroupBy
.Count > 0) {
817
for (int i = 0, n = ss.
GroupBy
.Count; i < n; i++) {
818
SqlExpression exp = ss.
GroupBy
[i];
SqlClient\Query\SqlLiftIndependentRowExpressions.cs (1)
44
if (select.
GroupBy
.Count > 0 || this.aggregateChecker.HasAggregates(select)) {
SqlClient\Query\SqlLiftWhereClauses.cs (1)
46
select.
GroupBy
.Count > 0 ||
SqlClient\Query\SqlMultiplexer.cs (2)
114
this.canJoin &= select.
GroupBy
.Count == 0 && select.Top == null && !select.IsDistinct;
363
this.canBigJoin &= select.
GroupBy
.Count == 0 && select.Top == null && !select.IsDistinct;
SqlClient\Query\SqlOuterApplyReducer.cs (4)
162
select.
GroupBy
.Count == 0 &&
355
select.
GroupBy
.Count > 0 ||
429
foreach(SqlExpression e in select.
GroupBy
) {
473
select.
GroupBy
.Count > 0 ||
SqlClient\Query\SqlReorderer.cs (4)
145
if (select.
GroupBy
.Count > 0) {
163
for (int i = 0, n = select.
GroupBy
.Count; i < n; i++) {
164
select.
GroupBy
[i] = this.VisitExpression(select.
GroupBy
[i]);
SqlClient\Query\SqlResolver.cs (5)
94
for (int i = 0, n = select.
GroupBy
.Count; i < n; i++) {
95
select.
GroupBy
[i] = this.VisitExpression(select.
GroupBy
[i]);
263
foreach (SqlExpression exp in select.
GroupBy
) {
284
if (select.
GroupBy
.Count == 0 || this.IsFoundInGroup(select)) {