mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
-
This commit is contained in:
parent
55056c2dcc
commit
16a3a68cf1
@ -1598,6 +1598,8 @@ namespace SqlSugar
|
||||
{
|
||||
var contextProperty = item.GetType().GetProperty("Context");
|
||||
SqlSugarContext newClient = this.Context.Utilities.CopyContext();
|
||||
if (newClient.CurrentConnectionConfig.AopEvents == null)
|
||||
newClient.CurrentConnectionConfig.AopEvents = new AopEvents();
|
||||
contextProperty.SetValue(item, newClient, null);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user