tags:

views:

94

answers:

2

I'm considering using MongoDb for a backing store for a WPF app that I'm building. Mostly just to get some exposure to NoSQL. Ideally I'd like to make a mongodb database, put it in my application's root folder (or ./data) and connect to it with LINQ -- without having mongo.exe running. I did something similar recently with SQLite and found it to be a great change from XML for data storage.

Is this possible with MongoDb? All the samples that I've seen require mongod.exe to be running when you connect to the database. And the data is always stored in c:\data\db.

+2  A: 

Answer, yes. Need to use the --dbpath switch and version 1.5.2 (for "upsert").

jcollum
A: 

@jcollum: But you still need to start mongod when your app starts, and shutdown when the app closes, right?

paolodm
Yes that's right. This should be a comment, not an answer.
jcollum