XPCollection(Session, IEnumerable, CriteriaOperator, Boolean) Constructor
Initializes a new instance of the XPCollection<T> class by copying T objects from a specific collection using specified settings.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
session | Session | The Session that will be used to load and save T persistent objects. |
originalCollection | IEnumerable | An object that implements the IEnumerable interface. |
copyFilter | CriteriaOperator | The CriteriaOperator that specifies the criteria for object selection from the originalCollection. |
caseSensitive | Boolean | true if string comparisons are case-sensitive; otherwise, false. This value is assigned to the XPBaseCollection.CaseSensitive property. |
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 specified session to load and save persistent objects.