Skip to content

Instantly share code, notes, and snippets.

@danared
Created April 2, 2015 16:07
Show Gist options
  • Save danared/32797572cca3cc93f4dc to your computer and use it in GitHub Desktop.
Save danared/32797572cca3cc93f4dc to your computer and use it in GitHub Desktop.
var client = new MongoClient("mongodb://localhost");
var server = client.GetServer();
var database = server.GetDatabase("test"); // this database uses the legacy API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment