TrackingObservableCollectionT Class

This is used to contain a set of entities that have tracking enabled

Definition

Namespace: EWSoftware.EntityFramework
Assembly: EWSoftware.EntityFramework (in EWSoftware.EntityFramework.dll) Version: 2025.11.12.0
public class TrackingObservableCollection<T> : ObservableCollection<T>
Inheritance
Object    CollectionT    ObservableCollectionT    TrackingObservableCollectionT

Type Parameters

T
The entity type in the collection

Remarks

Properties

CountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionT)
ItemGets or sets the element at the specified index.
(Inherited from CollectionT)
ItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionT)

Methods

AddAdds an object to the end of the CollectionT.
(Inherited from CollectionT)
BlockReentrancyDisallows reentrant attempts to change this collection.
(Inherited from ObservableCollectionT)
CheckReentrancyChecks for reentrant attempts to change this collection.
(Inherited from ObservableCollectionT)
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionT)
ClearItems This is overridden to remove each individual entry rather than clearing them all out at once to allow the data context to know about the removal of all the tracked items.
(Overrides ObservableCollectionTClearItems)
ContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionT)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionT)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionT)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionT)
InsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionT)
InsertItemInserts an item into the collection at the specified index.
(Inherited from ObservableCollectionT)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
MoveMoves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionT)
MoveItemMoves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionT)
OnCollectionChanged This is overridden to add or remove items from the related data context
(Overrides ObservableCollectionTOnCollectionChanged(NotifyCollectionChangedEventArgs))
OnPropertyChangedRaises the PropertyChanged event with the provided arguments.
(Inherited from ObservableCollectionT)
RemoveRemoves the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionT)
RemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionT)
RemoveItemRemoves the item at the specified index of the collection.
(Inherited from ObservableCollectionT)
SetItemReplaces the element at the specified index.
(Inherited from ObservableCollectionT)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

CollectionChangedOccurs when an item is added, removed, or moved, or the entire list is refreshed.
(Inherited from ObservableCollectionT)
PropertyChangedOccurs when a property value changes.
(Inherited from ObservableCollectionT)

Extension Methods

ToNullableT This is used to convert objects to null values if they are equal to null, DBNull.Value, or the default value for the given type.
(Defined by DatabaseExtensions)
ToStringOrNull This is used to convert an object to a string and return either the string value if not empty, or null if it is an empty string.
(Defined by DatabaseExtensions)

See Also