TrackingBindingListTEntity 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 TrackingBindingList<TEntity> : BindingList<TEntity>
where TEntity : class
Inheritance
Object    CollectionTEntity    BindingListTEntity    TrackingBindingListTEntity

Type Parameters

TEntity
The entity type in the collection

Properties

AllowEditGets or sets a value indicating whether items in the list can be edited.
(Inherited from BindingListTEntity)
AllowNewGets or sets a value indicating whether you can add items to the list using the AddNew method.
(Inherited from BindingListTEntity)
AllowRemoveGets or sets a value indicating whether you can remove items from the collection.
(Inherited from BindingListTEntity)
CountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionTEntity)
IsSortedCoreGets a value indicating whether the list is sorted.
(Inherited from BindingListTEntity)
ItemGets or sets the element at the specified index.
(Inherited from CollectionTEntity)
ItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionTEntity)
RaiseListChangedEventsGets or sets a value indicating whether adding or removing items within the list raises ListChanged events.
(Inherited from BindingListTEntity)
SortDirectionCoreGets the direction the list is sorted.
(Inherited from BindingListTEntity)
SortPropertyCoreGets the property descriptor that is used for sorting the list if sorting is implemented in a derived class; otherwise, returns .
(Inherited from BindingListTEntity)
SupportsChangeNotificationCoreGets a value indicating whether ListChanged events are enabled.
(Inherited from BindingListTEntity)
SupportsSearchingCoreGets a value indicating whether the list supports searching.
(Inherited from BindingListTEntity)
SupportsSortingCoreGets a value indicating whether the list supports sorting.
(Inherited from BindingListTEntity)

Methods

AddAdds an object to the end of the CollectionT.
(Inherited from CollectionTEntity)
AddNewAdds a new item to the collection.
(Inherited from BindingListTEntity)
AddNewCoreAdds a new item to the end of the collection.
(Overrides BindingListTAddNewCore)
ApplySortCoreSorts the items if overridden in a derived class; otherwise, throws a NotSupportedException.
(Inherited from BindingListTEntity)
CancelNewDiscards a pending new item.
(Overrides BindingListTCancelNew(Int32))
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionTEntity)
ClearItemsRemoves all elements from the collection.
(Overrides BindingListTClearItems)
ContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionTEntity)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionTEntity)
EndNewCommits a pending new item to the collection.
(Overrides BindingListTEndNew(Int32))
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)
FindCoreSearches for the index of the item that has the specified property descriptor with the specified value, if searching is implemented in a derived class; otherwise, a NotSupportedException.
(Inherited from BindingListTEntity)
GetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionTEntity)
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 CollectionTEntity)
InsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionTEntity)
InsertItemInserts the specified item in the list at the specified index.
(Overrides BindingListTInsertItem(Int32, T))
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnAddingNewRaises the AddingNew event.
(Inherited from BindingListTEntity)
OnListChangedRaises the ListChanged event.
(Inherited from BindingListTEntity)
RemoveRemoves the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionTEntity)
RemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionTEntity)
RemoveItemRemoves the item at the specified index.
(Overrides BindingListTRemoveItem(Int32))
RemoveSortCoreRemoves any sort applied with ApplySortCore(PropertyDescriptor, ListSortDirection) if sorting is implemented in a derived class; otherwise, raises NotSupportedException.
(Inherited from BindingListTEntity)
ResetBindingsRaises a ListChanged event of type Reset.
(Inherited from BindingListTEntity)
ResetItemRaises a ListChanged event of type ItemChanged for the item at the specified position.
(Inherited from BindingListTEntity)
SetItemReplaces the item at the specified index with the specified item.
(Overrides BindingListTSetItem(Int32, T))
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

AddingNewOccurs before an item is added to the list.
(Inherited from BindingListTEntity)
ListChangedOccurs when the list or an item in the list changes.
(Inherited from BindingListTEntity)

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