A collection of Entity objects.
| C# | Visual Basic |
[SerializableAttribute] public class EntityCollection<TEntity> : BindingList<TEntity>, IList<TEntity>, ICollection<TItem>, IEnumerable<TItem>, IList, ICollection, IEnumerable, IEditableObject where TEntity : Entity
<SerializableAttribute> _ Public Class EntityCollection(Of TEntity As Entity) _ Inherits BindingList(Of TEntity) _ Implements IList(Of TEntity), ICollection(Of TItem), _ IEnumerable(Of TItem), IList, ICollection, IEnumerable, _ IEditableObject
- TEntity
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| EntityCollection<(Of <(TEntity>)>)()()() |
Initializes a new instance of the EntityCollection<(Of <(TEntity>)>) class.
| |
| AddRange(IEnumerable<(Of <(TEntity>)>)) |
Adds a range of entities to this collection.
| |
| BeginEdit()()() |
Begins an edit on an object.
| |
| CancelEdit()()() |
Discards changes since the last BeginEdit()()() call.
| |
| ClearItems()()() |
Removes all elements from the collection.
(Overrides BindingList<(Of <(TEntity>)>).ClearItems()()().) | |
| EndEdit()()() |
Pushes changes since the last BeginEdit()()()
or AddNew()()() call into the underlying object.
| |
| EntityAdded |
Occurs when an entity is added to the collection.
| |
| EntityRemoved |
Occurs when an entity is removed from the collection.
| |
| Find(Predicate<(Of <(TEntity>)>)) |
Finds an entity that matches a predicate.
| |
| FindAll(Predicate<(Of <(TEntity>)>)) |
Finds a list of entities that match a predicate.
| |
| InsertItem(Int32, TEntity) |
Inserts the specified item in the list at the specified index.
(Overrides BindingList<(Of <(TEntity>)>).InsertItem(Int32, T).) | |
| IsLazy |
Gets or sets a value indicating whether this instance is lazy, i.e. is
not yet loaded.
| |
| ItemAdded |
Occurs when an entity is added.
| |
| ItemRemoved |
Occurs when an entity is removed.
| |
| RemoveItem(Int32) |
Removes the item at the specified index.
(Overrides BindingList<(Of <(TEntity>)>).RemoveItem(Int32).) | |
| ToArray()()() |
Creates a primitive array of the entities in this collection.
| |
| ToString()()() | (Overrides Object.ToString()()().) |
| Object | |||
| Collection<(Of <(TEntity>)>) | |||
| BindingList<(Of <(TEntity>)>) | |||
| EntityCollection<(Of <(TEntity>)>) | |||