SelectTerminatorImpl<T> Class

Represents the default implementation of SelectTerminator<T> interface.

C#
public sealed class SelectTerminatorImpl<T> : SelectTerminator<T>
where T : notnull

Type Parameters

T
notnull

The type of the result set.

Inheritance
SelectTerminatorImpl<T>
Implements

Constructors

SelectTerminatorImpl(string, Func<string, IEnumerable<T>>)

Represents the default implementation of SelectTerminator<T> interface.

Methods

Execute()

Description copied from interface: SelectTerminator

Executes the query and gets the result.

Limit(int)

Description copied from interface: SelectTerminator

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

LimitOffset(int, int)

Description copied from interface: SelectTerminator

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

Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)
ToString() (Inherited from object)

Constructors Detail

SelectTerminatorImpl(string, Func<string, IEnumerable<T>>)

Represents the default implementation of SelectTerminator<T> interface.

C#
public SelectTerminatorImpl(string text, Func<string, IEnumerable<T>> executor)

Parameters

text
string

The SQL query text.

executor
Func<string, IEnumerable<T>>

The executor function.

Methods Detail

Execute()

Description copied from interface: SelectTerminator

Executes the query and gets the result.

C#
public IEnumerable<T> Execute()

Returns

Description copied from interface: SelectTerminator

The T objects representing the result of the query.

Implements

Limit(int)

Description copied from interface: SelectTerminator

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

C#
public IEnumerable<T> Limit(int limit)

Parameters

limit
int

Returns

Description copied from interface: SelectTerminator

The T objects representing the limited result of the query.

Implements

LimitOffset(int, int)

Description copied from interface: SelectTerminator

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

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

Parameters

limit
int
offset
int

Returns

Description copied from interface: SelectTerminator

The T objects representing the limited result of the query.

Implements