Browse Source

db.GetConnection BUG

pull/3/head
sunkaixuna 4 years ago
parent
commit
7ead2b2bc7
  1. 4
      Src/Asp.Net/SqlSugar/SqlSugarClient.cs

4
Src/Asp.Net/SqlSugar/SqlSugarClient.cs

@ -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)

Loading…
Cancel
Save