mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
db.GetConnection BUG
This commit is contained in:
@@ -589,6 +589,10 @@ namespace SqlSugar
|
|||||||
db.Context = new SqlSugarProvider(db.ConnectionConfig);
|
db.Context = new SqlSugarProvider(db.ConnectionConfig);
|
||||||
}
|
}
|
||||||
var intiAop=db.Context.Aop;
|
var intiAop=db.Context.Aop;
|
||||||
|
if (db.Context.CurrentConnectionConfig.AopEvents == null)
|
||||||
|
{
|
||||||
|
db.Context.CurrentConnectionConfig.AopEvents = new AopEvents();
|
||||||
|
}
|
||||||
return db.Context;
|
return db.Context;
|
||||||
}
|
}
|
||||||
public void ChangeDatabase(dynamic configId)
|
public void ChangeDatabase(dynamic configId)
|
||||||
|
Reference in New Issue
Block a user