10 instantiations of SqlOrderExpression
System.Data.Linq (10)
SqlClient\Query\QueryConverter.cs (2)
1503
select.OrderBy.Add(new
SqlOrderExpression
(orderType, expr));
1521
select.OrderBy.Add(new
SqlOrderExpression
(orderType, expr));
SqlClient\Query\SqlDuplicator.cs (2)
81
orderBy.Add(new
SqlOrderExpression
(expr.OrderType, (SqlExpression)this.Visit(expr.Expression)));
219
SqlOrderExpression nsox = new
SqlOrderExpression
(sox.OrderType, (SqlExpression)this.Visit(sox.Expression));
SqlClient\Query\SqlReorderer.cs (6)
119
list.Add(new
SqlOrderExpression
(SqlOrderType.Ascending, new SqlColumnRef(col)));
192
this.Orders.Add(new
SqlOrderExpression
(SqlOrderType.Ascending, new SqlColumnRef(rowNumberChecker.RowNumberColumn)));
198
select.OrderBy.Add(new
SqlOrderExpression
(sox.OrderType, (SqlExpression)dup.Duplicate(sox.Expression)));
239
orderBy.Add(new
SqlOrderExpression
(SqlOrderType.Ascending, new SqlColumnRef(col)));
251
orderBy.Add(new
SqlOrderExpression
(SqlOrderType.Ascending, new SqlColumnRef(col)));
256
rowNumber.OrderBy.Add(new
SqlOrderExpression
(sox.OrderType, (SqlExpression)dup.Duplicate(sox.Expression)));
52 references to SqlOrderExpression
System.Data.Linq (52)
SqlClient\Common\SqlFactory.cs (1)
324
internal SqlRowNumber RowNumber(List<
SqlOrderExpression
> orderBy, Expression sourceExpression) {
SqlClient\Common\SqlNode.cs (13)
280
private List<
SqlOrderExpression
> orderBy;
290
this.orderBy = new List<
SqlOrderExpression
>();
356
internal List<
SqlOrderExpression
> OrderBy {
777
internal class SqlOrderExpression : IEquatable<
SqlOrderExpression
> {
803
if (this.EqualsTo(obj as
SqlOrderExpression
))
809
public bool Equals(
SqlOrderExpression
other) {
816
private bool EqualsTo(
SqlOrderExpression
other) {
826
SqlColumn col1 =
SqlOrderExpression
.UnwrapColumn(this.Expression);
827
SqlColumn col2 =
SqlOrderExpression
.UnwrapColumn(other.Expression);
836
SqlColumn col =
SqlOrderExpression
.UnwrapColumn(this.Expression);
869
private List<
SqlOrderExpression
> orderBy;
871
internal List<
SqlOrderExpression
> OrderBy {
875
internal SqlRowNumber(Type clrType, ProviderType sqlType, List<
SqlOrderExpression
> orderByList, Expression sourceExpression)
SqlClient\Query\QueryConverter.cs (1)
1072
SqlColumn rowNumber = new SqlColumn("ROW_NUMBER", sql.RowNumber(new List<
SqlOrderExpression
>(), this.dominatingExpression));
SqlClient\Query\SqlDuplicator.cs (7)
78
List<
SqlOrderExpression
> orderBy = new List<
SqlOrderExpression
>();
80
foreach (
SqlOrderExpression
expr in rowNumber.OrderBy) {
215
List<
SqlOrderExpression
> lex = null;
217
lex = new List<
SqlOrderExpression
>(select.OrderBy.Count);
218
foreach (
SqlOrderExpression
sox in select.OrderBy) {
219
SqlOrderExpression
nsox = new SqlOrderExpression(sox.OrderType, (SqlExpression)this.Visit(sox.Expression));
SqlClient\Query\SqlFlattener.cs (2)
241
private void FlattenOrderBy(List<
SqlOrderExpression
> exprs) {
242
foreach (
SqlOrderExpression
obex in exprs) {
SqlClient\Query\SqlFormatter.cs (2)
186
SqlOrderExpression
exp = rowNumber.OrderBy[i];
833
SqlOrderExpression
exp = ss.OrderBy[i];
SqlClient\Query\SqlNamer.cs (2)
218
ICollection<string> GetColumnNames(IEnumerable<
SqlOrderExpression
> orderList)
222
foreach (
var
expr in orderList) {
SqlClient\Query\SqlOuterApplyReducer.cs (1)
425
foreach(
SqlOrderExpression
oe in select.OrderBy) {
SqlClient\Query\SqlRemoveConstantOrderBy.cs (1)
24
List<
SqlOrderExpression
> orders = select.OrderBy;
SqlClient\Query\SqlReorderer.cs (22)
31
List<
SqlOrderExpression
> orders;
32
List<
SqlOrderExpression
> rowNumberOrders;
38
this.orders = new List<
SqlOrderExpression
>();
45
List<
SqlOrderExpression
> save = this.orders;
46
this.orders = new List<
SqlOrderExpression
>();
52
private void PrependOrderExpressions(IEnumerable<
SqlOrderExpression
> exprs) {
58
private List<
SqlOrderExpression
> Orders {
61
this.orders = new List<
SqlOrderExpression
>();
70
List<
SqlOrderExpression
> leftOrders = this.orders;
93
List<
SqlOrderExpression
> list = new List<
SqlOrderExpression
>();
157
List<
SqlOrderExpression
> save = this.orders;
195
this.orders = new HashSet<
SqlOrderExpression
>(this.orders).ToList();
197
foreach (
SqlOrderExpression
sox in this.orders) {
210
List<
SqlOrderExpression
> orderBy = new List<
SqlOrderExpression
>();
211
List<
SqlOrderExpression
> existingOrders = new List<
SqlOrderExpression
>();
214
existingOrders = new List<
SqlOrderExpression
>(this.rowNumberOrders);
217
existingOrders = new List<
SqlOrderExpression
>(this.orders);
220
foreach (
SqlOrderExpression
expr in existingOrders) {
255
foreach (
SqlOrderExpression
sox in orderBy) {