I am not deep in working with MongoDB. But i want to use it with C# driver. I guess that not all features can be available in this driver (Am i right?). Or for example, it easy to find some code written on javascript and, so, it seems easy to use it without mapping/finding appropriate methods in C# driver. I know that MongoDB is written on C++, but as i understand that the main/native driver language is javascript. So i am interesting in how can i run javascript from C# for working with MongoDB? and does this help in get开发者_高级运维ting all features from MongoDB? If it does, tell me please, how to embed and run javascript in C#? Of course, i need fast and easy to use realization, you know;)))))
Edit: which driver will be faster: C# or JavaScript?
Most of the functionality should be made available at the C# level by the driver. If, however, you want to do some more advanced queries, like a map-reduce, you're sort of stuck with writing some Javascript - it's like writing SQL for an RDBMS.
I just wanted to update this since there's a lot more functionality in the C# driver now and, where there is not, you can try using NoRM (NoRM on Github) or reviewing the source code for some inspiration. Note that this is not the official driver so don't expect support from 10gen if you have a support contract (although I have seen members of the 10gen team actively helping out in the NoRM user group).
精彩评论