连接数据库:参考地址:https://blog.oz-code.com/how-to-mongodb-in-c-part-2/ // Empty ctor will get you a // client with a default localhost and port #27017 MongoClient m = new MongoClient(); //---------------------------------------------------------------------…