MongoServices 0.2.0
A Service/Repository Framework for mongoDB
MongoServices.ReadOnlyRepository< T > Class Template Reference

The base "Read Only" repository. More...

Inheritance diagram for MongoServices.ReadOnlyRepository< T >:
MongoServices.MongoServicesRepository< T > MongoServices.IReadOnlyRepository< T > MongoServices.IMongoServicesRepository< T > MongoServices.IMongoServicesRepository< T > MongoServices.ReadWriteRepository< T >

List of all members.

Public Member Functions

IEnumerable< T > GetAll ()
 Gets a collection of the MongoServicesModel from the mongoDB database.
GetById (ObjectId id)
 Gets one MongoServicesModel from the mongoDB database.

Detailed Description

template<T>
class MongoServices::ReadOnlyRepository< T >

The base "Read Only" repository.

Template Parameters:
TThe MongoServices model to be used by this repository.
Type Constraints
T :MongoServicesModel 

Definition at line 13 of file ReadOnlyRepository.cs.


Member Function Documentation

template<T >
IEnumerable<T> MongoServices.ReadOnlyRepository< T >.GetAll ( )

Gets a collection of the MongoServicesModel from the mongoDB database.

Returns:
An enumerable list of the MongoServicesModels.

Implements MongoServices.IReadOnlyRepository< T >.

Definition at line 21 of file ReadOnlyRepository.cs.

template<T >
T MongoServices.ReadOnlyRepository< T >.GetById ( ObjectId  id)

Gets one MongoServicesModel from the mongoDB database.

Parameters:
idThe "Id" of the document to be retrieved.
Returns:
The selected MongoServicesModel.

Implements MongoServices.IReadOnlyRepository< T >.

Definition at line 31 of file ReadOnlyRepository.cs.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Enumerations Properties