Re: [New-York-MongoDB-User-Group] Rolling out updates to documents

From: Jesse S.
Sent on: Wednesday, September 14, 2011 10:17 AM
You would need some sort of data abstraction layer that allows you to define your schema in your language of choice and then use that DAL as the entry way into your mongo collections for all of your services built on top of them. The DAL could have an ODM (ORM but with documents) built on top of it to automatically translate your documents into native objects in your language of choice as well but you does not have to. The DAL/ODM should be capable of verifying constraints on your documents etc. when you create and modify them.

There are quite a few out there at this point in almost every language. I am not sure about c# but if you google c# mongo ORM you will probably find one or more.

On Wed, Sep 14, 2011 at 8:03 AM, Sanil Paul <[address removed]> wrote:
We are in the early stages of developing a C# based application using Mongodb. Migrating from SQL Server. Any ideas to deal with changes in documents would be much appreciated. 

The problem is same as described on Ayande's blog. There is one more addition. We use Teamcity for continous integration and our developers work with their own instance of mongodb. Right now, am not aware of any method to force a developer to have the same property on the object as well as on the mongo instance where teamcity deploys the build to. We were thinking of having a pre-build script that checks (using map - reduce) all the documents and the corresponding object(identified using a marker interface), I am not sure whether there is someother way to handle this situatioin.

public class Customer
    public string Name {get;set;}
    public string Email {get;set;}
    public int NumberOfOrders {get;set;}

public class Customer
    public string FirstName {get;set;}
    public string LastName {get;set;}
    public string CustomerEmail {get;set;}
    public bool PreferredCustomer {get;set;}



Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Sanil Paul ([address removed]) from New York MongoDB User Group.
To learn more about Sanil Paul, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

  • MongoDB

    MongoDB organizes the NY MongoDB User Group

  • SpringSource

    SpringSource hosts the MongoDB User Group

  • Gilt Groupe

    Gilt provides space for the NY MongoDB User Group.

  • O'Reilly

    Members save 40% off print and 50% off ebooks use discount code DSUG

  • Buddy Media

    Buddy Media hosts the MongoDB User Group.

  • ZocDoc

    ZocDoc kindly provides space for the MongoDB User Group

  • Strata Conf

    Strata Conference + Hadoop World - Oct 23-25 - discount for members!

  • Data Week

    People, industries, & organizations using data to fuel innovation

  • Joyent

    Joyent provides food for the User Group

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy