IRepositoryManager(T, TKey) Interface

MongoRepository

IRepositoryManagerT, TKey Interface
IRepositoryManager definition.

Namespace: MongoRepository
Assembly: MongoRepository.Net45 (in MongoRepository.Net45.dll) Version: 1.6.11.0 (1.6.11.0)
Syntax
public interface IRepositoryManager<T, TKey>
where T : Object, IEntity<TKey>
Public Interface IRepositoryManager(Of T As {Object, IEntity(Of TKey)}, TKey)
generic<typename T, typename TKey>
where T : Object, IEntity<TKey>
public interface class IRepositoryManager
type IRepositoryManager<'T, 'TKey when 'T : Object and IEntity<'TKey>> =  interface end

Type Parameters

T
The type contained in the repository to manage.
TKey
The type used for the entity's Id.

The IRepositoryManagerT, TKey type exposes the following members.

Properties
  NameDescription
Public propertyExists
Gets a value indicating whether the collection already exists.
Public propertyName
Gets the name of the collection as Mongo uses.
Top
Methods
  NameDescription
Public methodDrop
Drops the repository.
Public methodDropAllIndexes
Drops all indexes on this repository.
Public methodDropIndex
Drops specified index on the repository.
Public methodDropIndexes
Drops specified indexes on the repository.
Public methodEnsureIndex(String)
Ensures that the desired index exist and creates it if it doesn't exist.
Public methodEnsureIndex(String, Boolean, Boolean, Boolean)
Ensures that the desired index exist and creates it if it doesn't exist.
Public methodEnsureIndexes(IEnumerableString)
Ensures that the desired indexes exist and creates them if they don't exist.
Public methodEnsureIndexes(IMongoIndexKeys, IMongoIndexOptions)
Ensures that the desired indexes exist and creates them if they don't exist.
Public methodEnsureIndexes(IEnumerableString, Boolean, Boolean, Boolean)
Ensures that the desired indexes exist and creates them if they don't exist.
Public methodGetIndexes
Gets the indexes for this repository.
Public methodGetStats
Gets stats for this repository.
Public methodGetTotalDataSize
Gets the total size for the repository (data + indexes).
Public methodGetTotalStorageSize
Gets the total storage size for the repository (data + indexes).
Public methodIndexesExists
Tests whether indexes exist.
Public methodIndexExists
Tests whether indexes exist.
Public methodIsCapped
Tests whether the repository is capped.
Public methodReIndex
Runs the ReIndex command on this repository.
Public methodValidate
Validates the integrity of the repository.
Top
See Also