mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update README.md
This commit is contained in:
parent
723517693e
commit
b7d5bd48d9
21
README.md
21
README.md
@ -409,5 +409,26 @@ db.CodeFirst.BackupTable().InitTables(typeof(CodeTable),typeof(CodeTable2)); //c
|
||||
db.CodeFirst.InitTables(typeof(CodeTable),typeof(CodeTable2));
|
||||
```
|
||||
|
||||
## 9. AOP LOG
|
||||
```
|
||||
db.Aop.OnLogExecuted = (sql, pars) => //SQL执行完事件
|
||||
{
|
||||
|
||||
};
|
||||
db.Aop.OnLogExecuting = (sql, pars) => //SQL执行前事件
|
||||
{
|
||||
|
||||
};
|
||||
db.Aop.OnError = (exp) =>//执行SQL 错误事件
|
||||
{
|
||||
|
||||
};
|
||||
db.Aop.OnExecutingChangeSql = (sql, pars) => //SQL执行前 可以修改SQL
|
||||
{
|
||||
return new KeyValuePair<string, SugarParameter[]>(sql,pars);
|
||||
};
|
||||
|
||||
```
|
||||
|
||||
More
|
||||
http://www.codeisbug.com/Doc/8
|
||||
|
Loading…
Reference in New Issue
Block a user