Interface IWithIndex<ParentT>
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
The stage of the mongo collection definition allowing to set indexes.
public interface IWithIndex<ParentT>
Type Parameters
ParentT
The stage of the parent definition to return to after attaching this definition.
Methods
WithIndex(MongoIndex)
Specifies a mongo index.
IWithAttach<ParentT> WithIndex(MongoIndex index)
Parameters
index
MongoIndexThe specific mongo index.
Returns
- IWithAttach<ParentT>
The next stage of the definition.
WithIndex(MongoIndexKeys, MongoIndexOptions)
Specifies a mongo index.
IWithAttach<ParentT> WithIndex(MongoIndexKeys key, MongoIndexOptions option)
Parameters
key
MongoIndexKeysThe key of the index.
option
MongoIndexOptionsThe option of the index.
Returns
- IWithAttach<ParentT>
The next stage of the definition.
WithIndexes(IList<MongoIndex>)
Appends all mongo indexes to current indexes.
IWithAttach<ParentT> WithIndexes(IList<MongoIndex> indexes)
Parameters
indexes
IList<MongoIndex>The indexes needs appending.
Returns
- IWithAttach<ParentT>
The next stage of the definition.