MongoServices 0.2.0
A Service/Repository Framework for mongoDB
|
The interface for a "Read Only" repository. More...
Public Member Functions | |
IEnumerable< T > | GetAll () |
Gets a collection of the MongoServicesModel from the mongoDB database. | |
T | GetById (ObjectId id) |
Gets one MongoServicesModel from the mongoDB database. |
The interface for a "Read Only" repository.
T | The MongoServices model to be used by this repository. |
T | : | MongoServicesModel |
Definition at line 13 of file IReadOnlyRepository.cs.
IEnumerable<T> MongoServices.IReadOnlyRepository< T >.GetAll | ( | ) |
Gets a collection of the MongoServicesModel from the mongoDB database.
Implemented in MongoServices.ReadOnlyRepository< T >.
T MongoServices.IReadOnlyRepository< T >.GetById | ( | ObjectId | id | ) |
Gets one MongoServicesModel from the mongoDB database.
id | The "Id" of the MongoServicesModel to be retrieved. |
Implemented in MongoServices.ReadOnlyRepository< T >.