MongoServices 0.2.0
A Service/Repository Framework for mongoDB
|
The base "Read Only" service. More...
Public Member Functions | |
ReadOnlyService (IReadOnlyRepository< T > readOnlyRepository) | |
Constructs a ReadOnlyService based on the readOnlyRepository parameter. | |
IEnumerable< T > | GetAll () |
Gets a collection of the MongoServicesModels from the IReadOnlyRepository<T>. | |
T | GetById (ObjectId id) |
Gets one MongoServicesModel from the IReadOnlyRepository<T>. | |
Properties | |
IReadOnlyRepository< T > | ReadOnlyRepository [get, set] |
Gets the IReadOnlyRepository<T> that was passed into the constructor. |
The base "Read Only" service.
T | The MongoServices model to be used by this service. |
T | : | MongoServicesModel |
Definition at line 13 of file ReadOnlyService.cs.
IEnumerable<T> MongoServices.ReadOnlyService< T >.GetAll | ( | ) |
Gets a collection of the MongoServicesModels from the IReadOnlyRepository<T>.
Implements MongoServices.IReadOnlyService< T >.
Definition at line 40 of file ReadOnlyService.cs.
T MongoServices.ReadOnlyService< T >.GetById | ( | ObjectId | id | ) |
Gets one MongoServicesModel from the IReadOnlyRepository<T>.
id | The "Id" of the MongoServicesModel to be retrieved. |
Implements MongoServices.IReadOnlyService< T >.
Definition at line 50 of file ReadOnlyService.cs.
MongoServices.ReadOnlyService< T >.ReadOnlyService | ( | IReadOnlyRepository< T > | readOnlyRepository | ) |
Constructs a ReadOnlyService based on the readOnlyRepository
parameter.
readOnlyRepository | The IReadOnlyRepository<T> to be used with this service. |
Definition at line 28 of file ReadOnlyService.cs.
IReadOnlyRepository<T> MongoServices.ReadOnlyService< T >.ReadOnlyRepository [get, set, protected] |
Gets the IReadOnlyRepository<T> that was passed into the constructor.
Definition at line 20 of file ReadOnlyService.cs.