Mindscape LightSpeed - User Reference & API Documentation
ThroughAssociation<(Of <(TThrough, TTarget>)>) Class
API ReferenceMindscape.LightSpeedThroughAssociation<(Of <(TThrough, TTarget>)>)
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.
Declaration Syntax
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
Generic Template Parameters
TThrough
The type of the intermediate Entity
TTarget
The type of the target Entity
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
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.

Inheritance Hierarchy
Object
ThroughAssociation<(Of <(TThrough, TTarget>)>)

Assembly: Mindscape.LightSpeed (Module: Mindscape.LightSpeed) Version: 1.2.1393.0 (1.2.1393.0)