MongoRepository(T) Methods

MongoRepository

MongoRepositoryT Methods

The MongoRepositoryT generic type exposes the following members.

Methods
  Name Description
Public method Add(IEnumerableT)
Adds the new entities in the repository.
(Inherited from MongoRepositoryT, TKey.)
Public method Add(T)
Adds the new entity in the repository.
(Inherited from MongoRepositoryT, TKey.)
Public method Count
Counts the total entities in the repository.
(Inherited from MongoRepositoryT, TKey.)
Public method Delete(ObjectId)
Deletes an entity from the repository by its ObjectId.
(Inherited from MongoRepositoryT, TKey.)
Public method Delete(ExpressionFuncT, Boolean)
Deletes the entities matching the predicate.
(Inherited from MongoRepositoryT, TKey.)
Public method Delete(TKey)
Deletes an entity from the repository by its id.
(Inherited from MongoRepositoryT, TKey.)
Public method DeleteAll
Deletes all entities in the repository.
(Inherited from MongoRepositoryT, TKey.)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method Exists
Checks if the entity exists for given predicate.
(Inherited from MongoRepositoryT, TKey.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetById(ObjectId)
Returns the T by its given id.
(Inherited from MongoRepositoryT, TKey.)
Public method GetById(TKey)
Returns the T by its given id.
(Inherited from MongoRepositoryT, TKey.)
Public method GetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from MongoRepositoryT, TKey.)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RequestDone
Lets the server know that this thread is done with a series of related operations.
(Inherited from MongoRepositoryT, 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 MongoRepositoryT, TKey.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method Update(IEnumerableT)
Upserts the entities.
(Inherited from MongoRepositoryT, TKey.)
Public method Update(T)
Upserts an entity.
(Inherited from MongoRepositoryT, TKey.)
Top
See Also