Creates a lookup from a sequence of documents according to a specified metadata key
that contains a sequence of keys.
- Namespace
- Statiq
.Common - Containing Type
- I
Document To Lookup Extensions
Syntax
public static ILookup<TKey, IDocument> ToLookupMany<TKey>(this IEnumerable<IDocument> documents, string keyMetadataKey)
Type Parameters
Name | Description |
---|---|
TKey | The type of the key. |
Parameters
Name | Type | Description |
---|---|---|
documents | IEnumerable |
The documents. |
keyMetadataKey | string | The key metadata key. |
Return Value
Type | Description |
---|---|
ILookup |
A lookup. |