This commit is contained in:
sunkaixuan 2019-05-06 16:06:02 +08:00
parent 55056c2dcc
commit 16a3a68cf1

View File

@ -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);
}
}