Can I use MongoDb in serverless mode?

I am considering using MongoDb for backup storage for the WPF application that I am creating. Mostly just to get a little deal with NoSQL. Ideally, I would like to create a mongodb database, put it in the root folder of the application (or. / Data) and connect to it using LINQ - without starting mongo.exe. I recently did something similar with SQLite and found this to be a great change from XML for storing data.

Is this possible with MongoDb? All the samples I've seen require mounod.exe to start when it connects to the database. And the data is always stored in c: \ data \ db.

+4
source share
1 answer

The answer is yes. You must use the -dbpath switch and version 1.5.2 (for "upsert").

+2
source

Source: https://habr.com/ru/post/1312904/


All Articles