Framework版本:.Net Framework 4 ConnectionUtil源码参见:https://www.cnblogs.com/threadj/p/10536273.html using System; using System.Collections.Generic; using System.Linq; using System.Web; using MongoDB.Driver; using MongoDB.Bson; using MongoDB.Driver.Builde…
1. use foobar2. show dbs3. show collections4. db.system.indexes.find()5. db.persons.find()6. db.persons.insert({name:"extjs4.0"})7. db.persons.findOne()8. db.persons.update({name:"extjs4.0"},{$set:{name:"extjs4.1"}})强硬的文档替换工作…
约束 public abstract class BaseModel { public int Id { get; set; } } 连接字符串 public static readonly string Customers = ConfigurationManager.ConnectionStrings["Customers"].ToString(); 通用数据库字符串 public class SqlBuilder<T> where T : BaseModel { pu…