首先添加 Nuget包 MongoDB.Driver 创建一个Model. public class Student { public ObjectId _id { get; set; } public string name { get; set; } public int age { get; set; } public Address address { get; set; } } public class Address{ public string province { get; s…