示例#1
0
        public override string BuildPageQuery(long skip, long take, PagingHelper.SQLParts parts, ref object[] args)
        {
            if (parts.sqlSelectRemoved.StartsWith("*"))
            {
                throw new Exception("Query must alias '*' when performing a paged query.\neg. select t.* from table t order by t.id");
            }

            // Same deal as SQL Server
            return(PagingHelper.BuildPaging(skip, take, parts, ref args));
        }
示例#2
0
 public override string BuildPageQuery(long skip, long take, PagingHelper.SQLParts parts, ref object[] args)
 {
     return(PagingHelper.BuildPaging(skip, take, parts, ref args));
 }