mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 10:49:36 +08:00
Optimal naming
This commit is contained in:
parent
3e04f60536
commit
be24b6d38f
@ -13,16 +13,16 @@ namespace SqlSugar
|
|||||||
public class SqlSugarScopeProvider:ISqlSugarClient
|
public class SqlSugarScopeProvider:ISqlSugarClient
|
||||||
{
|
{
|
||||||
internal SqlSugarProvider conn;
|
internal SqlSugarProvider conn;
|
||||||
internal string InitThreadMainId;
|
internal string initThreadMainId;
|
||||||
internal string Initkey = null;
|
internal string initkey = null;
|
||||||
StackFrame[] frames;
|
StackFrame[] frames;
|
||||||
|
|
||||||
public SqlSugarScopeProvider(SqlSugarProvider conn)
|
public SqlSugarScopeProvider(SqlSugarProvider conn)
|
||||||
{
|
{
|
||||||
this.conn = conn;
|
this.conn = conn;
|
||||||
this.InitThreadMainId = GetCurrentThreadId();
|
this.initThreadMainId = GetCurrentThreadId();
|
||||||
var key = GetKey();
|
var key = GetKey();
|
||||||
this.Initkey = key;
|
this.initkey = key;
|
||||||
this.GetContext(true);
|
this.GetContext(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,9 +99,9 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
private dynamic GetKey()
|
private dynamic GetKey()
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(this.Initkey) &&this.InitThreadMainId == GetCurrentThreadId())
|
if (!string.IsNullOrEmpty(this.initkey) &&this.initThreadMainId == GetCurrentThreadId())
|
||||||
{
|
{
|
||||||
return this.Initkey;
|
return this.initkey;
|
||||||
}
|
}
|
||||||
var key= "SqlSugarProviderScope_" + conn.CurrentConnectionConfig.ConfigId;
|
var key= "SqlSugarProviderScope_" + conn.CurrentConnectionConfig.ConfigId;
|
||||||
if (frames == null)
|
if (frames == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user