Свойство | Тип | Описание | |
---|---|---|---|
defaultOfferType | string |
Метод | Описание | |
---|---|---|
InitializeCustomHashResolver ( string>.Func |
Initialize a HashPartitionResolver that uses a custom function to extract the partition key.
|
|
InitializeHashResolver ( string partitionKeyPropertyName, Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, string collectionNames ) : Task |
Initialize a HashPartitionResolver.
|
|
InitializeLookupPartitionResolver ( string partitionKeyPropertyName, Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, string collectionNames ) : Task |
Initialize a LookupPartitionResolver. Default is for US East/West to go to first collection name, Europe to second, and AsiaPacific / Other to third.
|
|
InitializeManagedHashResolver ( string>.Func |
Initialize a "managed" HashPartitionResolver that also takes care of creating collections, and cloning collection properties like stored procedures, offer type and indexing policy.
|
|
InitializeRangeResolver ( string partitionKeyPropertyName, Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, string collectionNames ) : Task |
Initialize a RangePartitionResolver.
|
public static InitializeCustomHashResolver ( string>.Func | ||
partitionKeyExtractor | string>.Func | The partition key extractor function. |
client | Microsoft.Azure.Documents.Client.DocumentClient | The DocumentDB client instance to use. |
database | Microsoft.Azure.Documents.Database | The database to run the samples on. |
collectionNames | string | The names of collections used. |
Результат | Task |
public static InitializeHashResolver ( string partitionKeyPropertyName, Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, string collectionNames ) : Task |
||
partitionKeyPropertyName | string | The property name to be used as the partition Key. |
client | Microsoft.Azure.Documents.Client.DocumentClient | The DocumentDB client instance to use. |
database | Microsoft.Azure.Documents.Database | The database to run the samples on. |
collectionNames | string | The names of collections used. |
Результат | Task |
public static InitializeLookupPartitionResolver ( string partitionKeyPropertyName, Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, string collectionNames ) : Task |
||
partitionKeyPropertyName | string | The property name to be used as the partition Key. |
client | Microsoft.Azure.Documents.Client.DocumentClient | The DocumentDB client instance to use. |
database | Microsoft.Azure.Documents.Database | The database to run the samples on. |
collectionNames | string | The names of collections used. |
Результат | Task |
public static InitializeManagedHashResolver ( string>.Func | ||
partitionKeyExtractor | string>.Func | The partition key extractor function. (Ex: "u => ((UserProfile)u).UserId") |
client | Microsoft.Azure.Documents.Client.DocumentClient | The DocumentDB client instance to use. |
database | Microsoft.Azure.Documents.Database | The database to run the samples on. |
numCollections | int | The number of collections to be used. |
collectionSpec | The DocumentCollectionSpec to be used for each collection created. If null returns Spec with defaultOfferType as set in config. | |
Результат |
public static InitializeRangeResolver ( string partitionKeyPropertyName, Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, string collectionNames ) : Task |
||
partitionKeyPropertyName | string | The property name to be used as the partition Key. |
client | Microsoft.Azure.Documents.Client.DocumentClient | The DocumentDB client instance to use. |
database | Microsoft.Azure.Documents.Database | The database to run the samples on. |
collectionNames | string | The names of collections used. |
Результат | Task |