mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 02:14:53 +08:00
Change database aop bug
This commit is contained in:
@@ -553,6 +553,8 @@ namespace SqlSugar
|
||||
if (this._IsOpen)
|
||||
this.Open();
|
||||
_Context.Ado.IsEnableLogEvent = isLog;
|
||||
if (_CurrentConnectionConfig.AopEvents==null)
|
||||
_CurrentConnectionConfig.AopEvents = new AopEvents();
|
||||
}
|
||||
public void ChangeDatabase(Func<ConnectionConfig, bool> changeExpression)
|
||||
{
|
||||
@@ -565,6 +567,8 @@ namespace SqlSugar
|
||||
if (this._IsOpen)
|
||||
this.Open();
|
||||
_Context.Ado.IsEnableLogEvent = isLog;
|
||||
if (_CurrentConnectionConfig.AopEvents == null)
|
||||
_CurrentConnectionConfig.AopEvents = new AopEvents();
|
||||
}
|
||||
public void BeginTran()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user