SelectTerminatorImpl<T> Class
Represents the default implementation of SelectTerminator<T> interface.
public sealed class SelectTerminatorImpl<T> : SelectTerminator<T>
where T : notnull
Type Parameters
- T
-
notnull
The type of the result set.
- Inheritance
-
Select
Terminator Impl<T>
- Implements
Constructors
Select |
Represents the default implementation of SelectTerminator<T> interface. |
Methods
Execute() |
Description copied from interface: SelectTerminator
|
Limit(int) |
Description copied from interface: SelectTerminator
|
Limit |
Description copied from interface: SelectTerminator
|
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.
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.
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.
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.
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.