Browsed by
Month: March 2013

Extending versioning metadata for RavenDB

Extending versioning metadata for RavenDB

RavenDB:s version bundle enables you to get built in versioning of all objects. These can easily be manipulated just like any other object and in this guide i will show an example on how to add useful metadata tags to the default objects. The version bundle automatically add Version number and the Updated date. We will here add creator, created date, modified by and bring them all together in a base class that all our objects can then inherit. Note:…

Read More Read More

Unit of work setup using Ninject and Ravendb

Unit of work setup using Ninject and Ravendb

This is an example of setting up RavenDb using Ninject, Unit of work style. There are a number of different approaches out there, many using an abstract base controller. But this one is inspired by a castle based solution i stumbled upon wich i liked. The first thing you need to setup is the nuget packages. What you need are the ‘Ninject.MVC3’ and ‘RavenDB.Client.MvcIntegration’ basically (presuming you are using a standalone RavenDB server). When this is taken care of we…

Read More Read More