How to use mongodb with linq to store blobs (files)?

I know the two most popular C # drivers for mongodb are mongodb-csharp and NoRM . Both of them have some problems. For example, with mongodb-csharp, I cannot use the full functional linq, and with NoRM, I cannot store a large file in mongodb. In my project, I need to use linq with large objects (files).

+2


a source to share


3 answers


You can check the official 10gen MongoDB C # driver . It doesn't support LINQ yet, but they've added a really nice query engine for GridFS.



+2


a source


EDIT: I haven't read the title of the question, sorry. I don't think you want to use Linq to communicate with GridFS. If so, we welcome some contributions.


The linq driver for mongodb-csharp is almost complete. It supports predictions, conditions, ordering, skipping, accepting and (almost done), it will build downsize queries when you use aggregate and / or group operators.



If you take the latest typedcollections branch, I think you will find that it does everything you want it to.

http://wiki.github.com/craiggwilson/mongodb-csharp/linq

+2


a source


I don't think you need use LINQ. Using LINQ is convenient, but not required.

The solution is to help the teams that develop these drivers. It's all open source, so you can join these teams.

0


a source







All Articles