MongoServices 0.2.0
A Service/Repository Framework for mongoDB
MongoServices.IReadOnlyRepository< T > Interface Template Reference

The interface for a "Read Only" repository. More...

Inheritance diagram for MongoServices.IReadOnlyRepository< T >:
MongoServices.IMongoServicesRepository< T > MongoServices.IReadWriteRepository< T > MongoServices.ReadOnlyRepository< T > MongoServices.ReadWriteRepository< 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>
interface MongoServices::IReadOnlyRepository< T >

The interface for a "Read Only" repository.

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

Definition at line 13 of file IReadOnlyRepository.cs.


Member Function Documentation

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

Gets a collection of the MongoServicesModel from the mongoDB database.

Returns:
An enumerable list of the MongoServicesModels.

Implemented in MongoServices.ReadOnlyRepository< T >.

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

Gets one MongoServicesModel from the mongoDB database.

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

Implemented in MongoServices.ReadOnlyRepository< T >.


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