XPCollection(CriteriaOperator, SortProperty[]) Constructor
Initializes a new instance of the XPCollection<T> class with default Session and criteria-specific options.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public XPCollection(
CriteriaOperator theCriteria,
params SortProperty[] sortProperties
)
#Parameters
Name | Type | Description |
---|---|---|
the |
Criteria |
The Criteria |
sort |
Sort |
An array of Sort |
#Remarks
If the XPBaseCollection.LoadingEnabled property is set to true (default value) the collection is populated with T objects when its contents are accessed for the first time (for instance, when the XPBaseCollection.Count property is read).
The newly created collection will use the default session (Session.DefaultSession), to load and save T persistent objects.