文档问题 我不知哪里提出 这里写了 返回
SqlSugar
老数据
4
1433
悬赏:5 飞吻
热忱回答(4)
-
fate stay night VIP0
2021/9/18SqlSugarScope scope= new SqlSugarScope(new ConnectionConfig() { ConnectionString = "Server=.xxxxx",//连接符字串 DbType = DbType.SqlServer,//数据库类型 IsAutoCloseConnection = true //不设成true要手动close }, db=> { //(A)这里配置参数:所有上下文都生效 // db.Aop.xxx=xxxx.. });这才是官网用法
0 回复 -
fate stay night VIP0
2021/9/18AOP不出来只有2种情况,db.conextid不是同一个,注册要写在操作前面
0 回复 -
Lazy Coder VIP0
2021/9/18@fate stay night:我说的文档中的代码 pars 参数 可是下面用时 p 所以 实例代码错误.
0 回复 -
fate stay night VIP0
2021/9/18@Lazy Coder:这明显是文档上写错了
0 回复
