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