How To use MongoDB in Visual Studio
download MongoDB c# references from MongoDB Website
http://mongodb.github.io/mongo-csharp-driver
Add MongoDB References to Bin Folder.
var con = ConfigurationManager.ConnectionStrings[“KeyName"].ConnectionString;
MongoClient Client_ = new MongoClient(con);
MongoServer Server_ = Client_.GetServer();
MongoDatabase md = Server_.GetDatabase(DbName);
No comments:
Post a Comment