Summary
Groups the elements of a sequence of documents according to a specified metadata key
that contains a sequence of keys
and compares the keys by using a specified comparer.
Syntax
public static IEnumerable<IGrouping<TKey, IDocument>> GroupByMany<TKey>(this IEnumerable<IDocument> documents, string keyMetadataKey, IEqualityComparer<TKey> comparer)
Type Parameters
Name |
Description |
TKey |
The type of the key. |
Parameters
Name |
Type |
Description |
documents |
IEnumerable<IDocument> |
The documents. |
keyMetadataKey |
string |
The key metadata key. |
comparer |
IEqualityComparer<TKey> |
The comparer. |
Return Value
Type |
Description |
IEnumerable<IGrouping<TKey, IDocument>> |
A sequence of groups. |