MongoRepository documentation
IRepositoryManagerT 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> : IRepositoryManager<T, string> where T : Object, IEntity<string>
Public Interface IRepositoryManager(Of T As {Object, IEntity(Of String)}) Inherits IRepositoryManager(Of T, String)
generic<typename T> where T : Object, IEntity<String^> public interface class IRepositoryManager : IRepositoryManager<T, String^>
type IRepositoryManager<'T when 'T : Object and IEntity<string>> = interface interface IRepositoryManager<'T, string> end
Type Parameters
- T
- The type contained in the repository to manage.
The IRepositoryManagerT type exposes the following members.
Properties
Name | Description | |
---|---|---|
Exists |
Gets a value indicating whether the collection already exists.
(Inherited from IRepositoryManagerT, TKey.) | |
Name |
Gets the name of the collection as Mongo uses.
(Inherited from IRepositoryManagerT, TKey.) |
Methods
Name | Description | |
---|---|---|
Drop |
Drops the repository.
(Inherited from IRepositoryManagerT, TKey.) | |
DropAllIndexes |
Drops all indexes on this repository.
(Inherited from IRepositoryManagerT, TKey.) | |
DropIndex |
Drops specified index on the repository.
(Inherited from IRepositoryManagerT, TKey.) | |
DropIndexes |
Drops specified indexes on the repository.
(Inherited from IRepositoryManagerT, TKey.) | |
EnsureIndex(String) |
Ensures that the desired index exist and creates it if it doesn't exist.
(Inherited from IRepositoryManagerT, TKey.) | |
EnsureIndex(String, Boolean, Boolean, Boolean) |
Ensures that the desired index exist and creates it if it doesn't exist.
(Inherited from IRepositoryManagerT, TKey.) | |
EnsureIndexes(IEnumerableString) |
Ensures that the desired indexes exist and creates them if they don't exist.
(Inherited from IRepositoryManagerT, TKey.) | |
EnsureIndexes(IMongoIndexKeys, IMongoIndexOptions) |
Ensures that the desired indexes exist and creates them if they don't exist.
(Inherited from IRepositoryManagerT, TKey.) | |
EnsureIndexes(IEnumerableString, Boolean, Boolean, Boolean) |
Ensures that the desired indexes exist and creates them if they don't exist.
(Inherited from IRepositoryManagerT, TKey.) | |
GetIndexes |
Gets the indexes for this repository.
(Inherited from IRepositoryManagerT, TKey.) | |
GetStats |
Gets stats for this repository.
(Inherited from IRepositoryManagerT, TKey.) | |
GetTotalDataSize |
Gets the total size for the repository (data + indexes).
(Inherited from IRepositoryManagerT, TKey.) | |
GetTotalStorageSize |
Gets the total storage size for the repository (data + indexes).
(Inherited from IRepositoryManagerT, TKey.) | |
IndexesExists |
Tests whether indexes exist.
(Inherited from IRepositoryManagerT, TKey.) | |
IndexExists |
Tests whether indexes exist.
(Inherited from IRepositoryManagerT, TKey.) | |
IsCapped |
Tests whether the repository is capped.
(Inherited from IRepositoryManagerT, TKey.) | |
ReIndex |
Runs the ReIndex command on this repository.
(Inherited from IRepositoryManagerT, TKey.) | |
Validate |
Validates the integrity of the repository.
(Inherited from IRepositoryManagerT, TKey.) |
Remarks
Entities are assumed to use strings for Id's.
See Also