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

The base MongoServices repository. More...

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

List of all members.

Static Public Member Functions

static void SetMongoUrlProvider (Func< MongoUrl > provider)
 Sets the MongoUrl provider for the repository.

Properties

virtual string CollectionName [get]
 Gets the name of the mongoDB collection to use.
MongoCollection< T > Collection [get]
 Gets the collection for the MongoServices model.

Detailed Description

template<T>
class MongoServices::MongoServicesRepository< T >

The base MongoServices repository.

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

Definition at line 14 of file MongoServicesRepository.cs.


Member Function Documentation

template<T >
static void MongoServices.MongoServicesRepository< T >.SetMongoUrlProvider ( Func< MongoUrl >  provider) [static]

Sets the MongoUrl provider for the repository.

Parameters:
providerA
Func&lt;MongoUrl&gt;
that will return the appropriate MongoUrl.

Definition at line 93 of file MongoServicesRepository.cs.


Property Documentation

template<T >
MongoCollection<T> MongoServices.MongoServicesRepository< T >.Collection [get, protected]

Gets the collection for the MongoServices model.

Definition at line 42 of file MongoServicesRepository.cs.

template<T >
virtual string MongoServices.MongoServicesRepository< T >.CollectionName [get, protected]

Gets the name of the mongoDB collection to use.

Definition at line 26 of file MongoServicesRepository.cs.


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