'Declaration
Public Overloads Function Add(Of TKey)( _ ByVal keySelector As System.Linq.Expressions.Expression(Of Func(Of T,TKey)), _ ByVal keyIsUnique As System.Boolean _ ) As Subindex(Of T,TKey)
public Subindex<T,TKey> Add<TKey>( System.Linq.Expressions.Expression<Func<T,TKey>> keySelector, System.bool keyIsUnique )
Parameters
- keySelector
- Key selector expression of the subindex, see KeySelector.
- keyIsUnique
- Specifies whether the key used in this subindex is unique for any given value of the parent key (default: false).
Type Parameters
- TKey
- The type of the subindex key.
Return Value
The new subindex added to its parent's IndexDefinition<T>.Subindexes collection.