IRepository(T) Interface

MongoRepository

IRepositoryT Interface
IRepository definition.

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

Type Parameters

T
The type contained in the repository.

The IRepositoryT type exposes the following members.

Properties
  NameDescription
Public propertyCollection
Gets the Mongo collection (to perform advanced operations).
(Inherited from IRepositoryT, TKey.)
Public propertyElementType
Gets the type of the element(s) that are returned when the expression tree associated with this instance of IQueryable is executed.
(Inherited from IQueryable.)
Public propertyExpression
Gets the expression tree that is associated with the instance of IQueryable.
(Inherited from IQueryable.)
Public propertyProvider
Gets the query provider that is associated with this data source.
(Inherited from IQueryable.)
Top
Methods
  NameDescription
Public methodAdd(IEnumerableT)
Adds the new entities in the repository.
(Inherited from IRepositoryT, TKey.)
Public methodAdd(T)
Adds the new entity in the repository.
(Inherited from IRepositoryT, TKey.)
Public methodCount
Counts the total entities in the repository.
(Inherited from IRepositoryT, TKey.)
Public methodDelete(ExpressionFuncT, Boolean)
Deletes the entities matching the predicate.
(Inherited from IRepositoryT, TKey.)
Public methodDelete(T)
Deletes the given entity.
(Inherited from IRepositoryT, TKey.)
Public methodDelete(TKey)
Deletes an entity from the repository by its id.
(Inherited from IRepositoryT, TKey.)
Public methodDeleteAll
Deletes all entities in the repository.
(Inherited from IRepositoryT, TKey.)
Public methodExists
Checks if the entity exists for given predicate.
(Inherited from IRepositoryT, TKey.)
Public methodGetById
Returns the T by its given id.
(Inherited from IRepositoryT, TKey.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from IEnumerableT.)
Public methodRequestDone
Lets the server know that this thread is done with a series of related operations.
(Inherited from IRepositoryT, TKey.)
Public methodRequestStart
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 methodUpdate(IEnumerableT)
Upserts the entities.
(Inherited from IRepositoryT, TKey.)
Public methodUpdate(T)
Upserts an entity.
(Inherited from IRepositoryT, TKey.)
Top
Remarks
Entities are assumed to use strings for Id's.
See Also