mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
-
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user