db.GetConnection BUG

This commit is contained in:
sunkaixuna
2021-05-27 16:53:50 +08:00
parent ca9f39ea2e
commit 7ead2b2bc7

View File

@@ -589,6 +589,10 @@ namespace SqlSugar
db.Context = new SqlSugarProvider(db.ConnectionConfig);
}
var intiAop=db.Context.Aop;
if (db.Context.CurrentConnectionConfig.AopEvents == null)
{
db.Context.CurrentConnectionConfig.AopEvents = new AopEvents();
}
return db.Context;
}
public void ChangeDatabase(dynamic configId)