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

The interface for a "Read/Write" service. More...

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

List of all members.

Public Member Functions

SaveResult Save (T model)
 Saves the MongoServicesModel.
IDictionary
< MongoServicesModel,
SaveResult
Save (IEnumerable< T > models)
 Saves a collection of MongoServicesModels.
void DeleteById (ObjectId id)
 Deleted one document from the mongoDB collection.

Detailed Description

template<T>
interface MongoServices::IReadWriteService< T >

The interface for a "Read/Write" service.

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

Definition at line 13 of file IReadWriteService.cs.


Member Function Documentation

template<T >
void MongoServices.IReadWriteService< T >.DeleteById ( ObjectId  id)

Deleted one document from the mongoDB collection.

Parameters:
idThe "Id" of the document to be deleted.

Implemented in MongoServices.ReadWriteService< T >.

template<T >
SaveResult MongoServices.IReadWriteService< T >.Save ( model)

Saves the MongoServicesModel.

Parameters:
modelThe MongoServicesModel to be saved.
Returns:
This is the result of the save.

Implemented in MongoServices.ReadWriteService< T >.

template<T >
IDictionary<MongoServicesModel, SaveResult> MongoServices.IReadWriteService< T >.Save ( IEnumerable< T >  models)

Saves a collection of MongoServicesModels.

Parameters:
modelsThe collection of MongoServicesModels to be saved.
Returns:
The SaveResult for each model.

Implemented in MongoServices.ReadWriteService< T >.


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