This project has moved and is read-only. For the latest updates, please go here.


Add Versioning Options



Thanks for this great library, it helps me a lot of.
But i wonder is it possible to add versioning options for document to the library?

I have some thought about it also,
Some extra parameters could be added to MongoRepository.Update method for this. It can version whole old document or only version changed fields and replace new one.
Or new interface (IVersionedEntity) or [Versioned] attribute could be useful for this. We can setup versioning at Global.asax (complete or diff versioning)
We can select another mongo database or in-document versioning at setup.

What do you think?
Closed Feb 12, 2015 at 6:01 PM by RobIII
Today we moved the MongoRepository project to GitHub so I would kindly like to request you open your issue there if you still want to comment / discuss or think the issue is not ready to be closed yet to keep everything in one place.

We're sorry for any inconvenience.


RobIII wrote Dec 2, 2014 at 10:13 PM

I don't think this specific behaviour belongs in MongoRepository; it is merely a repository abstraction and nothing more. If you want specific behaviour then the best way to go is to derive ("subclass") your class from MongoRepository and implement it the way you want to. You could also fork and implement the changes in the "baseclass" if you want to.

RobIII wrote Dec 2, 2014 at 10:15 PM

(And there's also the IRepository<T> interface ofcourse...)

wrote Feb 12, 2015 at 6:01 PM