Class ListSelect
The ListSelect class is the base-class for all simple lists.
Assembly: SoDataBase.dll
Syntax
public abstract class ListSelect : PrivateSelect, ICloneable
Constructors
ListSelect()
Declaration
Fields
_fields
Declaration
protected ReturnFieldsCollection _fields
Field Value
_groupBy
Declaration
protected GroupBy _groupBy
Field Value
_joinRestriction
Declaration
protected JoinRestriction _joinRestriction
Field Value
_orderBy
Declaration
protected OrderBy _orderBy
Field Value
_restriction
Declaration
protected Restriction _restriction
Field Value
Properties
InnerGroupBy
Implementation of the Group by clause.
Declaration
protected override GroupBy InnerGroupBy { get; }
Property Value
Overrides
InnerJoinRestriction
Declaration
protected override JoinRestriction InnerJoinRestriction { get; }
Property Value
Overrides
InnerOrderBy
Implementation of the OrderBy clause.
Declaration
protected override OrderBy InnerOrderBy { get; }
Property Value
Overrides
InnerRestriction
Declaration
protected override Restriction InnerRestriction { get; }
Property Value
Overrides
InnerReturnFields
Declaration
protected override ReturnFieldsCollection InnerReturnFields { get; }
Property Value
Overrides
Methods
CreateListReaderAsync(SoConnection, PrivateSelect, int, CancellationToken, params Sentry[])
Declaration
protected static Task<SoDataReader> CreateListReaderAsync(SoConnection con, PrivateSelect select, int maxRows, CancellationToken cancellationToken, params Sentry[] sentries)
Parameters
Returns
CreateListReaderAsync(SoConnection, PrivateSelect, CancellationToken, params Sentry[])
CreateListReader will generate the query and populate the SoDataReader.
Declaration
protected static Task<SoDataReader> CreateListReaderAsync(SoConnection con, PrivateSelect select, CancellationToken cancellationToken, params Sentry[] sentries)
Parameters
| Type |
Name |
Description |
| SoConnection |
con |
Connection used to create the reader
|
| PrivateSelect |
select |
The select object-structure which contains the query-structure.
|
| CancellationToken |
cancellationToken |
|
| Sentry |
sentries |
Array of Sentry objects to be used
|
Returns
Examples
Remember to close the connection and the reader:
using (SoConnection con = ConnectionFactory.GetConnection())
{
using (SoDataReader reader = CreateListReader(con, this, sentries))
{
list.OnLoad(reader);
}
}
Implements
Extension Methods