MongoDB windows service won’t start
A couple of times now my MongoDB windows service won’t start after rebooting my machine. If you look at it in the services list it flicks between Starting and Started states but never really startsm...
View ArticleModel Binding MongoDB ObjectId with ASP.NET MVC
If you’re using the MongoDB C# driver with ASP.NET MVC and have a property of type ObjectId in your model you will get the following error when trying to bind back to the model. The parameter...
View ArticleA MongoDB Tutorial using C# and ASP.NET MVC
In this post I’m going to create a simple ASP.NET MVC website for a simple blog that uses MongoDB and the offical 10gen C# driver. MongoDB is no NOSQL database that stores information as Binary JSON...
View ArticleMongoDB Sorting and Indexes
I’ve been looking at some of my MongoDB queries and trying to optimise them. I had one query that did a few ‘in’ statement and then sorted on a field called CreatedTime in descending order to give me...
View ArticleOptimistic Concurrency with MongoDB C# driver and ASP.NET MVC – Prevent...
Over on my MongoDB C# Tutorial Richard asked how you would prevent multiple users from updating the same document. In this post I’m going to update the project in the tutorial to support this. In my...
View Article