IRepository(T) Methods

MongoRepository

IRepositoryT Methods

The IRepositoryT generic type exposes the following members.

Methods
  Name Description
Public method Add(IEnumerableT)
Adds the new entities in the repository.
(Inherited from IRepositoryT, TKey.)
Public method Add(T)
Adds the new entity in the repository.
(Inherited from IRepositoryT, TKey.)
Public method Count
Counts the total entities in the repository.
(Inherited from IRepositoryT, TKey.)
Public method Delete(ExpressionFuncT, Boolean)
Deletes the entities matching the predicate.
(Inherited from IRepositoryT, TKey.)
Public method Delete(T)
Deletes the given entity.
(Inherited from IRepositoryT, TKey.)
Public method Delete(TKey)
Deletes an entity from the repository by its id.
(Inherited from IRepositoryT, TKey.)
Public method DeleteAll
Deletes all entities in the repository.
(Inherited from IRepositoryT, TKey.)
Public method Exists
Checks if the entity exists for given predicate.
(Inherited from IRepositoryT, TKey.)
Public method GetById
Returns the T by its given id.
(Inherited from IRepositoryT, TKey.)
Public method GetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from IEnumerableT.)
Public method RequestDone
Lets the server know that this thread is done with a series of related operations.
(Inherited from IRepositoryT, TKey.)
Public method RequestStart
Lets the server know that this thread is about to begin a series of related operations that must all occur on the same connection. The return value of this method implements IDisposable and can be placed in a using statement (in which case RequestDone will be called automatically when leaving the using statement).
(Inherited from IRepositoryT, TKey.)
Public method Update(IEnumerableT)
Upserts the entities.
(Inherited from IRepositoryT, TKey.)
Public method Update(T)
Upserts an entity.
(Inherited from IRepositoryT, TKey.)
Top
See Also