Created
July 8, 2021 13:22
-
-
Save rafaeldalsenter/a6334074ce3e60c10ce0b60025d170d5 to your computer and use it in GitHub Desktop.
Mongo query: C# Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MongoDB.Driver; | |
var client = new MongoClient("mongodb://Ip1,Ip2"); | |
var ret = client.GetDatabase("example") | |
.GetCollection<ExampleCollection>("example_collection"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment