diff --git a/MongoDbGenericRepository/KeyTypedRepository/BaseMongoRepository.TKey.Index.cs b/MongoDbGenericRepository/KeyTypedRepository/BaseMongoRepository.TKey.Index.cs index 092c90d..c0847ba 100644 --- a/MongoDbGenericRepository/KeyTypedRepository/BaseMongoRepository.TKey.Index.cs +++ b/MongoDbGenericRepository/KeyTypedRepository/BaseMongoRepository.TKey.Index.cs @@ -109,7 +109,7 @@ namespace MongoDbGenericRepository /// /// The MongoDb accessor to manage indexes. /// - protected MongoDbIndexHandler MongoDbIndexHandler + protected virtual MongoDbIndexHandler MongoDbIndexHandler { get { @@ -124,6 +124,7 @@ namespace MongoDbGenericRepository } return _mongoDbIndexHandler; } + set { _mongoDbIndexHandler = value; } } ///