public override void Page(SqlBuilder sqlBuilder, int offset, int limit) { if (offset == 0 && limit != 0) { // Insert LIMIT clause after the select var selector = sqlBuilder.GetSelector(); selector = " TOP " + limit + " " + selector; sqlBuilder.Selector(selector); } else if (offset != 0 || limit != 0) { sqlBuilder.Trail = "OFFSET " + offset + " ROWS FETCH FIRST " + limit + " ROWS ONLY"; } }