mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 10:34:06 +08:00
Optimal naming
This commit is contained in:
parent
3e04f60536
commit
be24b6d38f
@ -13,16 +13,16 @@ namespace SqlSugar
|
||||
public class SqlSugarScopeProvider:ISqlSugarClient
|
||||
{
|
||||
internal SqlSugarProvider conn;
|
||||
internal string InitThreadMainId;
|
||||
internal string Initkey = null;
|
||||
internal string initThreadMainId;
|
||||
internal string initkey = null;
|
||||
StackFrame[] frames;
|
||||
|
||||
public SqlSugarScopeProvider(SqlSugarProvider conn)
|
||||
{
|
||||
this.conn = conn;
|
||||
this.InitThreadMainId = GetCurrentThreadId();
|
||||
this.initThreadMainId = GetCurrentThreadId();
|
||||
var key = GetKey();
|
||||
this.Initkey = key;
|
||||
this.initkey = key;
|
||||
this.GetContext(true);
|
||||
}
|
||||
|
||||
@ -99,9 +99,9 @@ namespace SqlSugar
|
||||
}
|
||||
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;
|
||||
if (frames == null)
|
||||
|
Loading…
Reference in New Issue
Block a user