Skip to content

Instantly share code, notes, and snippets.

@jasonmccay
Created October 9, 2011 05:15
Show Gist options
  • Save jasonmccay/1273337 to your computer and use it in GitHub Desktop.
Save jasonmccay/1273337 to your computer and use it in GitHub Desktop.
Get the MongoHQ database with the connection string.
static MongoDatabase retreive_mongohq_db()
{
return MongoServer.Create(
ConfigurationManager.ConnectionStrings["MongoHQ"].ConnectionString)
.GetDatabase("t2");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment