mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update Multi-tenant BUG
This commit is contained in:
@@ -769,16 +769,16 @@ namespace SqlSugar
|
||||
if (db.Context == null)
|
||||
{
|
||||
db.Context = new SqlSugarProvider(db.ConnectionConfig);
|
||||
if (_IsAllTran&&db.Context.Ado.Transaction==null)
|
||||
{
|
||||
db.Context.Ado.BeginTran();
|
||||
}
|
||||
}
|
||||
var intiAop=db.Context.Aop;
|
||||
if (db.Context.CurrentConnectionConfig.AopEvents == null)
|
||||
{
|
||||
db.Context.CurrentConnectionConfig.AopEvents = new AopEvents();
|
||||
}
|
||||
if (_IsAllTran && db.Context.Ado.Transaction == null)
|
||||
{
|
||||
db.Context.Ado.BeginTran();
|
||||
}
|
||||
return db.Context;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user