MongoServices 0.2.0
A Service/Repository Framework for mongoDB
MongoServices.MongoCollectionNameAttribute Class Reference

This attribute is to be applied the models with your application and defines the name of the mongoDB collection to be used. More...

List of all members.

Public Member Functions

 MongoCollectionNameAttribute (string collectionName)
 Constructs a new MongoCollectionNameAttribute based on the collectionName parameter.

Properties

string CollectionName [get, set]
 Gets the name of the mongoDB collection for the MongoServicesModel.

Detailed Description

This attribute is to be applied the models with your application and defines the name of the mongoDB collection to be used.

If the repository cannot find this attribute a MongoCollectionNameMissingException will be thrown.

Definition at line 13 of file MongoCollectionNameAttribute.cs.


Constructor & Destructor Documentation

MongoServices.MongoCollectionNameAttribute.MongoCollectionNameAttribute ( string  collectionName)

Constructs a new MongoCollectionNameAttribute based on the collectionName parameter.

Parameters:
collectionNameThe name of the mongoDB collection.

Definition at line 27 of file MongoCollectionNameAttribute.cs.


Property Documentation

string MongoServices.MongoCollectionNameAttribute.CollectionName [get, set]

Gets the name of the mongoDB collection for the MongoServicesModel.

Definition at line 19 of file MongoCollectionNameAttribute.cs.


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