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

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

Inheritance diagram for MongoServices.IReadOnlyService< T >:
MongoServices.IMongoServicesService< T > MongoServices.IReadWriteService< T > MongoServices.ReadOnlyService< T > MongoServices.ReadWriteService< T > MongoServices.ReadWriteService< T >

List of all members.

Public Member Functions

IEnumerable< T > GetAll ()
 Gets a collection of the MongoServicesModels from the IReadOnlyRepository&lt;T&gt;.
GetById (ObjectId id)
 Gets one MongoServicesModel from the IReadOnlyRepository&lt;T&gt;.

Detailed Description

template<T>
interface MongoServices::IReadOnlyService< T >

The interface for a "Read Only" service.

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

Definition at line 13 of file IReadOnlyService.cs.


Member Function Documentation

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

Gets a collection of the MongoServicesModels from the IReadOnlyRepository&lt;T&gt;.

Returns:
An enumerable list of the models.

Implemented in MongoServices.ReadOnlyService< T >.

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

Gets one MongoServicesModel from the IReadOnlyRepository&lt;T&gt;.

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

Implemented in MongoServices.ReadOnlyService< T >.


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