mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Synchronization code
This commit is contained in:
@@ -16,7 +16,7 @@ namespace SqlSugar
|
|||||||
private List<ConnectionConfig> _configs;
|
private List<ConnectionConfig> _configs;
|
||||||
private Action<SqlSugarClient> _configAction;
|
private Action<SqlSugarClient> _configAction;
|
||||||
|
|
||||||
private SqlSugarClient GetContext()
|
protected virtual SqlSugarClient GetContext()
|
||||||
{
|
{
|
||||||
SqlSugarClient result = null;
|
SqlSugarClient result = null;
|
||||||
var key = _configs.GetHashCode().ToString();
|
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;
|
SqlSugarProvider result = null;
|
||||||
var key = GetKey(); ;
|
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;
|
var aopIsNull = config.AopEvents == null;
|
||||||
if (aopIsNull)
|
if (aopIsNull)
|
||||||
|
Reference in New Issue
Block a user