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

The base "Read/Write" repository. More...

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

List of all members.

Public Member Functions

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

Detailed Description

template<T>
class MongoServices::ReadWriteRepository< T >

The base "Read/Write" repository.

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

Definition at line 14 of file ReadWriteRepository.cs.


Member Function Documentation

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

Deleted one document from the mongoDB collection.

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

Implements MongoServices.IReadWriteRepository< T >.

Definition at line 45 of file ReadWriteRepository.cs.

template<T >
virtual void MongoServices.ReadWriteRepository< T >.Save ( model) [virtual]

Saves the MongoServicesModel.

Parameters:
modelThe MongoServicesModel to be saved.

Implements MongoServices.IReadWriteRepository< T >.

Definition at line 22 of file ReadWriteRepository.cs.


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