用法和mysql一样 ,唯一区别就是要禁用连接池
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() { DbType = DbType.MySql, ConnectionString ="server=localhost;Database=SqlSugar4xTest;Uid=root;Pwd=haosql;Pooling=false;", IsAutoCloseConnection = true }); //要禁用连接池 Pooling=false;
2016 © donet5.comApache Licence 2.0