We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c711a3d commit 84d867dCopy full SHA for 84d867d
APIJSON.NET/APIJSON.NET/Data/DbContext.cs
@@ -18,6 +18,14 @@ public DbContext(IConfiguration options)
18
IsAutoCloseConnection = true,
19
InitKeyType= InitKeyType.Attribute
20
});
21
+ Db.Aop.OnLogExecuted = (sql, pars) => //SQL执行完事件
22
+ {
23
+
24
+ };
25
+ Db.Aop.OnLogExecuting = (sql, pars) => //SQL执行前事件
26
27
28
29
}
30
public SqlSugarClient Db;
31
public DbSet<Login> LoginDb { get { return new DbSet<Login>(Db); } }
0 commit comments