An EntityCollection<(Of <(TEntity>)>) decorator that provides convenient access to entities that
are normally accessed through an intermediary association. The primary use of this class
is to provide a more object-oriented view of many-to-many relationships.

C# | Visual Basic |
[SerializableAttribute] public class ThroughAssociation<TThrough, TTarget> : IList<TTarget>, ICollection<TTarget>, IEnumerable<TTarget>, IEnumerable where TThrough : Entity where TTarget : Entity
<SerializableAttribute> _ Public Class ThroughAssociation(Of TThrough As Entity, TTarget As Entity) _ Implements IList(Of TTarget), ICollection(Of TTarget), _ IEnumerable(Of TTarget), IEnumerable


All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | ThroughAssociation<(Of <(TThrough, TTarget>)>)(EntityCollection<(Of <(TThrough>)>)) |
Initializes a new instance of the ThroughAssociation<(Of <(TThrough, TTarget>)>) class.
|
![]() | Add(TTarget) |
Adds an item to the ICollection<(Of <(T>)>).
|
![]() | Clear()()() |
Removes all items from the ICollection<(Of <(T>)>).
|
![]() | Contains(TTarget) |
Determines whether the ICollection<(Of <(T>)>)
contains a specific value.
|
![]() | CopyTo(array<TTarget>[]()[], Int32) |
Copies the elements of the ICollection<(Of <(T>)>)
to an Array, starting at a particular Array index.
|
![]() | Count |
Gets the number of elements contained in the ICollection<(Of <(T>)>).
|
![]() | GetEnumerator()()() |
Returns an enumerator that iterates through the collection.
|
![]() | IndexOf(TTarget) |
Determines the index of a specific item in the
IList<(Of <(T>)>).
|
![]() | Insert(Int32, TTarget) |
Inserts an item to the IList<(Of <(T>)>)
at the specified index.
|
![]() | IsReadOnly |
Gets a value indicating whether the ICollection<(Of <(T>)>)
is read-only.
|
![]() | Item[([(Int32])]) |
Gets or sets the element at the specified index.
|
![]() | Remove(TTarget) |
Removes the first occurrence of a specific object from the
ICollection<(Of <(T>)>).
|
![]() | RemoveAt(Int32) |
Removes the IList<(Of <(T>)>)
item at the specified index.
|

Object | |
![]() | ThroughAssociation<(Of <(TThrough, TTarget>)>) |