Exemple #1
0
        /// <summary>
        /// Adds a new order by token to the expression
        /// </summary>
        /// <param name="token">Property/Column name</param>
        /// <param name="direction">Order by direction, Asc or Desc</param>
        /// <param name="table">Table name/alias</param>
        public void AddOrderToken(string token, SqlOrderDirection direction = SqlOrderDirection.Asc, string table = null)
        {
            SqlOrderByToken sqlOrderToken = new SqlOrderByToken(token, direction, table);

            OrderTokens.Add(sqlOrderToken);
        }
Exemple #2
0
        /// <summary>
        /// Adds a new order by token to the expression
        /// </summary>
        /// <param name="token">Property/Column name</param>
        /// <param name="table">Table name/alias</param>
        public void AddOrderToken(string token, string table = null)
        {
            SqlOrderByToken sqlOrderToken = new SqlOrderByToken(token, table);

            OrderTokens.Add(sqlOrderToken);
        }