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)); }
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)); }
public T FirstOrDefault <T>(Expression <Func <T1, T> > columns) { string sql; SqlExpression.GetColumns(columns, out sql); return(_sqlhelper.FirstOrDefault <T>(GetFullSelectSql(sql), _args)); }