摘要: MongoDB查询转对象是出错Element '_id' does not match any field or property of class 解决方法: 1、在实体类加:[BsonIgnoreExtraElements] 2、或者定义public ObjectId _id { get; set; } 例子: [BsonIgnoreExtraElements] public... 阅读全文
posted @ 2016-12-28 17:12 94cool 阅读(4433) 评论(0) 推荐(1)
摘要: var srcTbl = "20161226"; var destTbl = "20161226-bak"; 方式一: MongoClient client; MongoServer server; MongoDatabase db; MongoClientSettings setting = new MongoClientSettings(); settin... 阅读全文
posted @ 2016-12-28 14:17 94cool 阅读(2075) 评论(0) 推荐(0)