50 references to OrderBy
System.Data.Linq (50)
SqlClient\Common\SqlVisitor.cs (3)
444
for (int i = 0, n = select.
OrderBy
.Count; i < n; i++) {
445
select.
OrderBy
[i].Expression = this.VisitExpression(select.
OrderBy
[i].Expression);
SqlClient\Query\QueryConverter.cs (4)
261
sel.
OrderBy
.Count > 0 ||
1494
if (select.Selection.NodeType != SqlNodeType.AliasRef || select.
OrderBy
.Count > 0) {
1503
select.
OrderBy
.Add(new SqlOrderExpression(orderType, expr));
1521
select.
OrderBy
.Add(new SqlOrderExpression(orderType, expr));
SqlClient\Query\SqlBinder.cs (3)
1168
for (int i = 0, n = select.
OrderBy
.Count; i < n; i++) {
1169
select.
OrderBy
[i].Expression = this.VisitExpression(select.
OrderBy
[i].Expression);
SqlClient\Query\SqlBooleanMismatchVisitor.cs (3)
31
for (int i = 0, n = select.
OrderBy
.Count; i < n; i++) {
32
select.
OrderBy
[i].Expression = this.VisitExpression(select.
OrderBy
[i].Expression);
SqlClient\Query\SqlDeflator.cs (14)
159
for (int i = select.
OrderBy
.Count - 1; i >= 0; i--) {
160
select.
OrderBy
[i].Expression = this.VisitExpression(select.
OrderBy
[i].Expression);
340
if (select.
OrderBy
.Count != 0 ||
380
sel.
OrderBy
.Count == 0;
409
for (int i = 0, n = select.
OrderBy
.Count; i < n; i++)
411
select.
OrderBy
[i].Expression = this.VisitExpression(select.
OrderBy
[i].Expression);
414
if (select.
OrderBy
.Count > 0)
418
for (int i = select.
OrderBy
.Count - 1; i >= 0; i--)
422
if (this.equalizer.AreEquivalent(select.
OrderBy
[i].Expression, select.
OrderBy
[j].Expression))
424
select.
OrderBy
.RemoveAt(i);
461
if (select.
OrderBy
.Count != 0 ||
SqlClient\Query\SqlDuplicator.cs (4)
216
if (select.
OrderBy
.Count > 0) {
217
lex = new List<SqlOrderExpression>(select.
OrderBy
.Count);
218
foreach (SqlOrderExpression sox in select.
OrderBy
) {
233
n.
OrderBy
.AddRange(lex);
SqlClient\Query\SqlFlattener.cs (2)
64
if (select.
OrderBy
.Count > 0) {
65
this.FlattenOrderBy(select.
OrderBy
);
SqlClient\Query\SqlFormatter.cs (3)
829
if (ss.
OrderBy
.Count > 0 && ss.OrderingType != SqlOrderingType.Never) {
832
for (int i = 0, n = ss.
OrderBy
.Count; i < n; i++) {
833
SqlOrderExpression exp = ss.
OrderBy
[i];
SqlClient\Query\SqlNamer.cs (1)
91
var reservedNames = this.GetColumnNames(select.
OrderBy
);
SqlClient\Query\SqlOuterApplyReducer.cs (2)
163
select.
OrderBy
.Count == 0) {
425
foreach(SqlOrderExpression oe in select.
OrderBy
) {
SqlClient\Query\SqlRemoveConstantOrderBy.cs (1)
24
List<SqlOrderExpression> orders = select.
OrderBy
;
SqlClient\Query\SqlReorderer.cs (7)
153
if (select.
OrderBy
.Count > 0) {
154
this.PrependOrderExpressions(select.
OrderBy
);
167
for (int i = 0, n = select.
OrderBy
.Count; i < n; i++) {
168
select.
OrderBy
[i].Expression = this.VisitExpression(select.
OrderBy
[i].Expression);
186
select.
OrderBy
.Clear();
198
select.
OrderBy
.Add(new SqlOrderExpression(sox.OrderType, (SqlExpression)dup.Duplicate(sox.Expression)));
SqlClient\Query\SqlResolver.cs (3)
98
for (int i = 0, n = select.
OrderBy
.Count; i < n; i++) {
99
select.
OrderBy
[i].Expression = this.VisitExpression(select.
OrderBy
[i].Expression);