The requested page is not available for the requested platform. You are viewing the content for Default platform.

XPCollection<T> Class

A generic type collection of persistent objects.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

public class XPCollection<T> :
    XPBaseCollection,
    IList<T>,
    ICollection<T>,
    IEnumerable<T>,
    IEnumerable
Public Class XPCollection(Of T)
    Inherits XPBaseCollection
    Implements IList(Of T),
               ICollection(Of T),
               IEnumerable(Of T),
               IEnumerable

Type Parameters

Name Description
T

Remarks

The XPCollection<T> class is a collection of persistent objects, much like the XPCollection. The only difference is that the XPCollection<T> is a generic type collection, which contains persistent objects as specified by T, and as a result, the collection cannot be used as a data source at design time.

Example:


XPCollection<Person> persons = new XPCollection<Person>(session1, 
    CriteriaOperator.Parse("FirstName = 'John'"));

As with the XPCollection, the XPCollection<T> is used to query data stores for specific objects and to represent the "many" end of object associations.

Inheritance

Implements

DevExpress.Xpo.Helpers.IXPClassInfoAndSessionProvider
DevExpress.Xpo.Helpers.IXPClassInfoProvider
DevExpress.Xpo.Helpers.IObjectLayerProvider
DevExpress.Xpo.Helpers.IDataLayerProvider
DevExpress.Xpo.Metadata.Helpers.IXPDictionaryProvider
DevExpress.Xpo.Helpers.IObjectChange
DevExpress.Data.Filtering.Helpers.IFilteredXtraBindingList
DevExpress.Data.Filtering.Helpers.IFilteredDataSource
DevExpress.Xpo.Helpers.IXPPrefetchableAssociationList
DevExpress.Xpo.Helpers.IXPBulkLoadableCollection
See Also