Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 public IDbSingleQuery OrderBy(IDataExpression expression)
 {
     OrderByClause = new DbQueryOrderByClause()
     {
         Expression = expression as DataExpression
     };
     return(this);
 }
Ejemplo n.º 2
0
        // OrderBy -------------------------------------

        /// <summary>
        ///
        /// </summary>
        /// <param name="statements"></param>
        /// <returns></returns>
        public IDbSingleQuery OrderBy(params IDbQueryOrderByStatement[] statements)
        {
            OrderByClause = new DbQueryOrderByClause()
            {
                Statements = statements?.Cast <DbQueryOrderByStatement>().ToList()
            };
            return(this);
        }