Пример #1
0
        public List <T> SkipTake <T>(long skip, long take, Expression <Func <T1, T> > columns)
        {
            string sql;

            SqlExpression.GetColumns(columns, out sql);
            return(_sqlhelper.Select <T>(skip, take, GetFullSelectSql(sql), _args));
        }
Пример #2
0
        public Page <T> Page <T>(long page, long itemsPerPage, Expression <Func <T1, T> > columns)
        {
            string sql;

            SqlExpression.GetColumns(columns, out sql);
            return(_sqlhelper.Page <T>(page, itemsPerPage, GetFullSelectSql(sql), _args));
        }
Пример #3
0
        public T FirstOrDefault <T>(Expression <Func <T1, T> > columns)
        {
            string sql;

            SqlExpression.GetColumns(columns, out sql);
            return(_sqlhelper.FirstOrDefault <T>(GetFullSelectSql(sql), _args));
        }