mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-12 08:38:29 +08:00
Optimize code
This commit is contained in:
parent
de57703e7a
commit
9fdde20430
@ -16,7 +16,7 @@ namespace SqlSugar
|
||||
private List<ConnectionConfig> _configs;
|
||||
private Action<SqlSugarClient> _configAction;
|
||||
|
||||
private SqlSugarClient GetContext()
|
||||
protected virtual SqlSugarClient GetContext()
|
||||
{
|
||||
SqlSugarClient result = null;
|
||||
var key = _configs.GetHashCode().ToString();
|
||||
|
@ -69,7 +69,7 @@ namespace SqlSugar
|
||||
}
|
||||
}
|
||||
}
|
||||
private SqlSugarProvider GetContext(bool isInit = false)
|
||||
protected virtual SqlSugarProvider GetContext(bool isInit = false)
|
||||
{
|
||||
SqlSugarProvider result = null;
|
||||
var key = GetKey(); ;
|
||||
|
@ -1350,7 +1350,7 @@ namespace SqlSugar
|
||||
);
|
||||
}
|
||||
|
||||
private void InitContext(ConnectionConfig config)
|
||||
protected virtual void InitContext(ConnectionConfig config)
|
||||
{
|
||||
var aopIsNull = config.AopEvents == null;
|
||||
if (aopIsNull)
|
||||
|
Loading…
Reference in New Issue
Block a user