MongoRepository documentation
IRepositoryManagerT, TKeyEnsureIndexes Method (IEnumerableString) |
Ensures that the desired indexes exist and creates them if they don't exist.
Namespace: MongoRepository
Assembly: MongoRepository.Net45 (in MongoRepository.Net45.dll) Version: 1.6.11.0 (1.6.11.0)

void EnsureIndexes( IEnumerable<string> keynames )
Sub EnsureIndexes ( keynames As IEnumerable(Of String) )
void EnsureIndexes( IEnumerable<String^>^ keynames )
abstract EnsureIndexes : keynames : IEnumerable<string> -> unit
Parameters
- keynames
- Type: System.Collections.GenericIEnumerableString
The indexed fields.

This is a convenience method for EnsureIndexes(IMongoIndexKeys keys, IMongoIndexOptions options).
Index will be ascending order, non-unique, non-sparse.
