Class ListSelect
The ListSelect class is the base-class for all simple lists.
Inheritance
System.Object
ListSelect
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
CreateListReader(SoConnection, PrivateSelect, Sentry[])
CreateListReader will generate the query and populate the SoDataReader.
Declaration
protected static SoDataReader CreateListReader(SoConnection con, PrivateSelect select, 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.
|
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);
}
}
CreateListReader(SoConnection, PrivateSelect, Int32, Sentry[])
Declaration
protected static SoDataReader CreateListReader(SoConnection con, PrivateSelect select, int maxRows, params Sentry[] sentries)
Parameters
Returns
Implements
System.ICloneable
Extension Methods
EnumUtil.MapEnums<From, To>(From)