XPCollection(PersistentCriteriaEvaluationBehavior, Session, CriteriaOperator) Constructor
Initializes a new instance of the XPCollection<T> class with specified settings.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public XPCollection(
PersistentCriteriaEvaluationBehavior criteriaEvaluationBehavior,
Session session,
CriteriaOperator condition
)
#Parameters
Name | Type | Description |
---|---|---|
criteria |
Persistent |
A Persistent |
session | Session | The Session that will be used to load and save T persistent objects. |
condition | Criteria |
The Criteria |
#Remarks
Note that when an XPCollection<T> is created using a constructor with the criteriaEvaluationBehavior parameter, the collection is loaded immediately and its XPBaseCollection.LoadingEnabled property is automatically set to false. After that, the collection cannot be reloaded using the XPBaseCollection.Reload method, since object loading is disabled.