I think that enforcing mappings when using MongoDb is like taking a step towards an OR/M instead of away from it, and in my opinion: away is better. A strength with MongoDB is that it’s schema less, why then add fictive schemas by adding mappings in your C# code? The driver I’m building uses Json.Net … Continue reading »
Tagged with MongoDB …
Simple-MongoDb – Just added support for generating ObjectId’s
As I’m working on adding support for DbReferences I added support for dealing with ObjectId’s in your typed classes. You can still skip them if you want, and instead rely on the database for the generation. Note! I’m working against the MongoDB v.1.2.4 and not 1.3.x. I tested it against the later and got some … Continue reading »
Simple-MongoDB – Alpha version is out
Ok, it’s finally out. My driver agains MongoDB can be downloaded from: http://code.google.com/p/simple-mongodb/ I will try to write more about how to use it, in the next couple of days, but for now I will just double post the info that’s posted on the Google code site. A C# implementation of a driver that can … Continue reading »
Simple-MongoDB, Open source C#-driver
Hi! As I posted about earlier today, I have started building my own driver against MongoDB, using C#. I’m striving against keeping it Json-centric. What I mean by this is that I rely on Json for serializing objects, so that you can use both static C# types as well as anonymous types or key-values. The … Continue reading »
C# driver for MongoDB
I have started to build my own driver against MongoDb, where I’m using Newtonsofts-Json-library for dealing with JSON and BSON serialization. It will be open source. The first draft of how you can insert documents looks like this: The MongoDocument that is being extended in Person has no komplexity at all. It just provides the … Continue reading »
MongoDB in C# – Extensions to support Json-mapping or Proxy generation
Note! This is an update to my previous post. For history and explanation of the consuming code see my previous post. I have made some quick changes to make the JSON API and the Proxy API that I wrote about in the earlier post, easier to use. I have put the code in an external … Continue reading »
Getting started with MongoDB – Using Json.Net and Castle Dynamic proxy
This post is divided in three blocks: – Getting MongoDB to run on your machine – Consume it manually via the MongoDB – Console – Consume it from C# code. Updates! See new post. Or how to do it, using Simple-MongoDB If you are just intereseted in the C# implementation, the section for how to … Continue reading »