The Beauty of Mongo

MongoDB is sexy.  Sexy as hell.

This isn’t the first or the best intro to Mongo+.NET, but I hope this one can show you how it finally solves the object-relational disconnect with an easy to follow example.

Let’s start with the model:

The beauty of it is the absolute simplicity of working with this model.  Aside from a few attributes, there’s not much thought that needs to be given to collections and inheritance hierarchies (though there are additional attributes and classes that can be used to control how these are stored if so desired).  I love it because this approach keeps your domain models clean.

How do we interact with this model?

Brilliantly simple.  Just fire up mongod.exe and you’re ready to rock and roll.  Download the example from here: MongoAssessmentsTest.zip

You may also like...