Exemplo n.º 1
0
 /// <summary>
 /// Adds the given expression object to the given list of expression objects.
 /// </summary>
 /// <param name="expressions">Destination expression list for the given expression object.</param>
 /// <param name="expression">Expression object to include in the list of expressions.</param>
 /// <returns>The given expression list object to enable fluent syntax.</returns>
 public static IList <Sql.SortExpression> ThenBy(this IList <Sql.SortExpression> expressions, Sql.SortExpression expression)
 {
     expressions.Add(expression);
     return(expressions);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new list of expression objects containing the given expressions.
 /// </summary>
 /// <param name="expression">First expression in the collection.</param>
 /// <param name="secondExpression">Second expression in the collection.</param>
 /// <returns>The newly created list of expression objects.</returns>
 public static IList <Sql.SortExpression> ThenBy(this Sql.SortExpression expression, Sql.SortExpression secondExpression)
 => new List <Sql.SortExpression>()
 {
     expression, secondExpression
 };