Used to apply subindex search to the result of a search operation.
Namespace:
C1.LiveLinq.Indexing.SearchAssembly: C1.LiveLinq (in C1.LiveLinq.dll)
Syntax
C# |
---|
public IIndexScanner<T> Subindex( Subindex<T> definition ) |
Visual Basic |
---|
Public Function Subindex ( _ definition As Subindex(Of T) _ ) As IIndexScanner(Of T) |
Parameters
- definition
- Type: C1.LiveLinq.Indexing..::..Subindex<(Of <(<'T>)>)>
Subindex to use for narrowing the search.
Return Value
An IIndexScanner<(Of <(<'T>)>)> collection indexed by the subindex that can be used to perform search operations narrowing the collection.Remarks
A subindex can be used to further narrow the result of a search operation,
if the corresponding subindex exists in the index or subindex used to perform that search operation. For example,
Copy CodeC#
var idxByCity = customers.Indexes(c => c.City); var subindexByContactTitle = idxByCity.Subindexes(c => c.ContactTitle); var ownersInLondon = idxByCity.Find("London").Subindex<string>(subindexByContactTitle).Find("Owner"); |