SelectTerminator<T> Interface

Represents the executable SELECT statement.

C#
public interface SelectTerminator<T>
where T : notnull

Type Parameters

T
notnull

The type of the class representing any row of the result of the query.

Methods

Execute()

Executes the query and gets the result.

Limit(int)

Executes the query and limits the number of rows that the query returns.

LimitOffset(int, int)

Executes the query and limits the number of rows that the query returns and specifies the starting offset.

Methods Detail

Execute()

Executes the query and gets the result.

C#
IEnumerable<T> Execute()

Returns

The T objects representing the result of the query.

Limit(int)

Executes the query and limits the number of rows that the query returns.

C#
IEnumerable<T> Limit(int limit)

Parameters

limit
int

The maximum number of rows to return.

Returns

The T objects representing the limited result of the query.

LimitOffset(int, int)

Executes the query and limits the number of rows that the query returns and specifies the starting offset.

C#
IEnumerable<T> LimitOffset(int limit, int offset)

Parameters

limit
int

The maximum number of rows to return.

offset
int

The number of rows to skip before starting to return rows.

Returns

The T objects representing the limited result of the query.