Example #1
0
        public ISQLOrderBy OrderByDescending <TEntity>(Expression <Func <TEntity, object> > order)
        {
            if (Sql.Orders == null)
            {
                Sql.Orders = new List <ISQLOrderBy>();
            }
            SQLOrderBy sqlOrder = new SQLOrderBy(Sql, order, SQLBuilder.OrderBy.DESC);

            Sql.Orders.Add(sqlOrder);
            return(sqlOrder);
        }
Example #2
0
        public ISQLOrderBy OrderBy <TEntity>(Expression <Func <TEntity, object> > order, OrderBy by)
        {
            if (Sql.Orders == null)
            {
                Sql.Orders = new List <ISQLOrderBy>();
            }
            SQLOrderBy sqlOrder = new SQLOrderBy(Sql, order, by);

            Sql.Orders.Add(sqlOrder);
            return(sqlOrder);
        }