RangePartitionResolver<T>.ResolveForRead Method

Definition

Given a partition key, returns a list of collection links to read from using the range partition map in the Azure DocumentDB database service.

public virtual System.Collections.Generic.IEnumerable<string> ResolveForRead (object partitionKey);
Parameters
partitionKey
Object

The partition key used to determine the target collections for query

Returns

The list of target collection links.

Exceptions

Thrown if the partitionKey is an invalid type.

Remarks

The partitionKey must be an instance of T, Range<T> or an IEnumerable<T>."/>. This method returns all the collections corresponding to the ranges that intersect with the specified partitionKey.