top method

MssqlQuery top(
  1. int rows
)

The first rows rows, with no offset: SELECT TOP (n).

Unlike paged, TOP needs no ORDER BY.

Implementation

MssqlQuery top(int rows) {
  if (rows <= 0) {
    throw ArgumentError.value(rows, 'rows', 'Must be positive.');
  }
  return _with(topRows: rows);
}