The EntityCollection<(Of <(TEntity>)>) type exposes the following members.

Constructors

  NameDescription
EntityCollection<(Of <(TEntity>)>)
Initializes a new instance of the EntityCollection<(Of <(TEntity>)>) class.

Methods

  NameDescription
AddRange
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.
Find
Finds an entity that matches a predicate.
FindAll
Finds a list of entities that match a predicate.
InsertItem
Inserts the specified item in the list at the specified index.
(Overrides BindingList<(Of <(TEntity>)>)..::.InsertItem(Int32, T).)
RemoveItem
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
Returns a String that represents the current Object.
(Overrides Object..::.ToString()()().)

Properties

  NameDescription
Deleted
Gets entities that have been removed from this collection but whose deletion has not yet been saved to the database.
IsLazy
Gets or sets a value indicating whether this instance is lazy, i.e. is not yet loaded.

Events

  NameDescription
EntityAdded
Occurs when an entity is added to the collection.
EntityRemoved
Occurs when an entity is removed from the collection.
ItemAdded
Occurs when an entity is added.
ItemRemoved
Occurs when an entity is removed.

See Also