System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (23)
238/// Creates a new <see cref="DbSortClause"/> with an ascending sort order and default collation
244public static DbSortClause ToSortClause(this DbExpression key)
251/// Creates a new <see cref="DbSortClause"/> with a descending sort order and default collation
257public static DbSortClause ToSortClauseDescending(this DbExpression key)
264/// Creates a new <see cref="DbSortClause"/> with an ascending sort order and the specified collation
272public static DbSortClause ToSortClause(this DbExpression key, string collation)
279/// Creates a new <see cref="DbSortClause"/> with a descending sort order and the specified collation
287public static DbSortClause ToSortClauseDescending(this DbExpression key, string collation)
514public static DbSkipExpression Skip(this DbExpressionBinding input, IEnumerable<DbSortClause> sortOrder, DbExpression count)
516System.Collections.ObjectModel.ReadOnlyCollection<DbSortClause> validSortOrder = ArgumentValidation.ValidateSkip(input, sortOrder, count);
533public static DbSortExpression Sort(this DbExpressionBinding input, IEnumerable<DbSortClause> sortOrder)
535System.Collections.ObjectModel.ReadOnlyCollection<DbSortClause> validSortOrder = ArgumentValidation.ValidateSort(input, sortOrder);
2262DbSortClause sortClause = DbExpressionBuilder.ToSortClause(keyExpression);
2263return DbExpressionBuilder.Sort(input, new DbSortClause[] { sortClause });
2289DbSortClause sortClause = DbExpressionBuilder.ToSortClause(keyExpression, collation);
2290return DbExpressionBuilder.Sort(input, new DbSortClause[] { sortClause });
2314DbSortClause sortClause = DbExpressionBuilder.ToSortClauseDescending(keyExpression);
2315return DbExpressionBuilder.Sort(input, new DbSortClause[] { sortClause });
2341DbSortClause sortClause = DbExpressionBuilder.ToSortClauseDescending(keyExpression, collation);
2342return DbExpressionBuilder.Sort(input, new DbSortClause[] { sortClause });
2495DbSortClause sortClause;
2505List<DbSortClause> newSortOrder = new List<DbSortClause>(source.SortOrder.Count + 1);