I have had an excellent experience working with MongoDB from LINQPad. Try this:
1. Open Query Properties -> Additional References
Add a reference to the mongocsharpdriver NuGet package( https://www.nuget.org/packages/mongocsharpdriver/1.10.0)
2. Go to Additional Namespace Imports and add a reference to MongoDB.Driver
3. Then you can query the database like this:
var server = new MongoClient(new MongoUrl("mongodb://localhost:27017")).GetServer();
var db = server.GetDatabase("myDatabase");
var collection = db.GetCollection("myCollection");
collection.FindAll().Dump();
I have had an excellent experience working with MongoDB from LINQPad. Try this:
1. Open Query Properties -> Additional References
Add a reference to the mongocsharpdriver NuGet package( https://www.nuget.org/packages/mongocsharpdriver/1.10.0)
2. Go to Additional Namespace Imports and add a reference to MongoDB.Driver
3. Then you can query the database like this:
var server = new MongoClient(new MongoUrl("mongodb://localhost:27017")).GetServer();
var db = server.GetDatabase("myDatabase");
var collection = db.GetCollection("myCollection");
collection.FindAll().Dump();