CommonAppenders..::..Join<(Of <(<'T1, T2, TKey>)>)> Method (ILink<(Of <(<'Tuple<(Of <(<'List<(Of <(<'T1>)>)>, List<(Of <(<'T2>)>)>>)>)>>)>)>, Func<(Of <(<'T1, TKey>)>)>, Func<(Of <(<'T2, TKey>)>)>, Func<(Of <(<'T1, ICollection<(Of <(<'T2>)>)>>)>)>, JoinOptions)
Joins a set of child objects to their parent objects.
Namespace:
Tortuga.ChainAssembly: Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)
Syntax
public static ILink<List<T1>> Join<T1, T2, TKey>( this ILink<Tuple<List<T1>, List<T2>>> previousLink, Func<T1, TKey> primaryKeyExpression, Func<T2, TKey> foreignKeyExpression, Func<T1, ICollection<T2>> targetCollectionExpression, JoinOptions joinOptions )
<ExtensionAttribute> _ Public Shared Function Join(Of T1, T2, TKey) ( _ previousLink As ILink(Of Tuple(Of List(Of T1), List(Of T2))), _ primaryKeyExpression As Func(Of T1, TKey), _ foreignKeyExpression As Func(Of T2, TKey), _ targetCollectionExpression As Func(Of T1, ICollection(Of T2)), _ joinOptions As JoinOptions _ ) As ILink(Of List(Of T1))
[ExtensionAttribute] public: generic<typename T1, typename T2, typename TKey> static ILink<List<T1>^>^ Join( ILink<Tuple<List<T1>^, List<T2>^>^>^ previousLink, Func<T1, TKey>^ primaryKeyExpression, Func<T2, TKey>^ foreignKeyExpression, Func<T1, ICollection<T2>^>^ targetCollectionExpression, JoinOptions^ joinOptions )
Type Parameters
- T1
- The type of the parent object.
- T2
- The type of the child object.
- TKey
- The type of the primary/foreign key.
Parameters
- previousLink
- Type: Tortuga.Chain..::..ILink<(Of <(<'Tuple<(Of <(<'List<(Of <(<'T1>)>)>, List<(Of <(<'T2>)>)>>)>)>>)>)>
The previous link.
- primaryKeyExpression
- Type: Func<(Of <(<'T1, TKey>)>)>
The expression to get the primary key from the parent object.
- foreignKeyExpression
- Type: Func<(Of <(<'T2, TKey>)>)>
The expression to get the foreign key from the child object.
- targetCollectionExpression
- Type: Func<(Of <(<'T1, ICollection<(Of <(<'T2>)>)>>)>)>
The expression to get the collection on the parent to add the child to.
- joinOptions
- Type: Tortuga.Chain..::..JoinOptions
The join options.