MongoDb Projection in C# - Stack Overflow
stackoverflow.com › questions › 49533659Mar 28, 2018 · MongoDb Projection in C#. namespace mongodbconnect { public class Book { public int _id { get; set; } public string name { get; set; } } class Program { static void Main (string [] args) { var mongoDbClient = new MongoClient (); var mydb = mongoDbClient.GetDatabase ("mydb"); var CBook = mydb.GetCollection<Book> ("Book"); var x = CBook.Find (new ...
MongoDB C# Driver — C#/.NET
www.mongodb.com › docs › driversYou can add the driver to your application to work with MongoDB in C#. Download the driver using NuGet, or set up a runnable project by following our Quick Start guide. Previous Versions For documentation on versions of the driver v2.18 and earlier, see the Previous Versions section. Quick Start