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

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

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

List of all members.

Public Member Functions

void Save (T model)
 Saves the MongoServicesModel.
void DeleteById (ObjectId id)
 Deleted one document from the mongoDB collection.

Detailed Description

template<T>
interface MongoServices::IReadWriteRepository< T >

The interface for a "Read/Write" repository.

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

Definition at line 13 of file IReadWriteRepository.cs.


Member Function Documentation

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

Deleted one document from the mongoDB collection.

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

Implemented in MongoServices.ReadWriteRepository< T >.

template<T >
void MongoServices.IReadWriteRepository< T >.Save ( model)

Saves the MongoServicesModel.

Parameters:
modelThe MongoServicesModel to be saved.

Implemented in MongoServices.ReadWriteRepository< T >.


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