Table of Contents

Class XPAssociationList

Namespace
DevExpress.Xpo.Helpers
Assembly
DevExpress.Xpo.v24.1.dll
public class XPAssociationList : IXPAssociationList, IXPClassInfoAndSessionProvider, IXPClassInfoProvider, ISessionProvider, IObjectLayerProvider, IDataLayerProvider, IXPDictionaryProvider, IXPPrefetchableAssociationList, IXPBulkLoadableCollection, IXPUnloadableAssociationList, IList, ICollection, IEnumerable, INotifyCollectionChanged
Inheritance
XPAssociationList
Implements
Derived
Inherited Members

Constructors

XPAssociationList(Session, object, XPMemberInfo)

public XPAssociationList(Session session, object owner, XPMemberInfo collectionMember)

Parameters

session Session
owner object
collectionMember XPMemberInfo

Fields

Member

protected readonly XPMemberInfo Member

Field Value

XPMemberInfo

OwnerObject

protected readonly object OwnerObject

Field Value

object

Properties

ClassInfo

public XPClassInfo ClassInfo { get; }

Property Value

XPClassInfo

Count

public int Count { get; }

Property Value

int

DoNotSetAssociatedMemberToNullWhenRemovingDeletedObjectFromAssociationList

public static bool? DoNotSetAssociatedMemberToNullWhenRemovingDeletedObjectFromAssociationList { get; set; }

Property Value

bool?

InnerList

protected IList InnerList { get; }

Property Value

IList

IsFixedSize

public bool IsFixedSize { get; }

Property Value

bool

IsLoaded

public bool IsLoaded { get; }

Property Value

bool

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

IsSynchronized

public bool IsSynchronized { get; }

Property Value

bool

Session

public Session Session { get; }

Property Value

Session

SyncRoot

public object SyncRoot { get; }

Property Value

object

Methods

Add(object)

public int Add(object value)

Parameters

value object

Returns

int

BeginLoad()

public ObjectsQuery BeginLoad()

Returns

ObjectsQuery

Clear()

public void Clear()

Contains(object)

public bool Contains(object value)

Parameters

value object

Returns

bool

CopyTo(Array, int)

public void CopyTo(Array array, int index)

Parameters

array Array
index int

EndLoad(IEnumerable)

public void EndLoad(IEnumerable queriedObjects)

Parameters

queriedObjects IEnumerable

FinishPrefetch(ICollection)

public void FinishPrefetch(ICollection queriedObjects)

Parameters

queriedObjects ICollection

GetEnumerator()

public IEnumerator GetEnumerator()

Returns

IEnumerator

IndexOf(object)

public int IndexOf(object value)

Parameters

value object

Returns

int

Indexer(int)

public object Indexer(int index)

Parameters

index int

Returns

object

Insert(int, object)

public void Insert(int index, object value)

Parameters

index int
value object

Load()

public void Load()

LoadAsync(CancellationToken)

public Task LoadAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task

NeedPrefetch()

public bool NeedPrefetch()

Returns

bool

OnAdd(int, object)

protected virtual void OnAdd(int index, object value)

Parameters

index int
value object

OnRemove(int, object)

protected virtual void OnRemove(int index, object obj)

Parameters

index int
obj object

OnUnload()

protected virtual void OnUnload()

Remove(object)

public void Remove(object value)

Parameters

value object

RemoveAt(int)

public void RemoveAt(int index)

Parameters

index int

ToString()

public override string ToString()

Returns

string

Unload()

public void Unload()

Events

CollectionChanged

public event NotifyCollectionChangedEventHandler CollectionChanged

Event Type

NotifyCollectionChangedEventHandler