An EntityCollection{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.

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

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

Type Parameters

TThrough
The type of the intermediate Entity
TTarget
The type of the target Entity

Inheritance Hierarchy

System..::.Object
  Mindscape.LightSpeed..::.ThroughAssociation<(Of <(TThrough, TTarget>)>)

See Also