安装nuget包
MongoDB.Driver
简单代码
using MongoDB.Bson;
using MongoDB.Driver;
using System.Buffers;
using System.Collections.Concurrent;
using System.Diagnostics;namespace ConsoleApp4
{internal class Program{static void Main(string[] args){var client = new MongoClient("mongodb://192.168.11.137");var database = client.GetDatabase(