Browse Source

-

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
16a3a68cf1
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

2
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

@ -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…
Cancel
Save