mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 01:47:06 +08:00
Code optimization
This commit is contained in:
parent
1660cc62b5
commit
b1dd6c96e5
@ -13,6 +13,7 @@ namespace SqlSugar
|
|||||||
public SqlSugarClient Context { get; set; }
|
public SqlSugarClient Context { get; set; }
|
||||||
public ConnectionConfig CurrentConnectionConfig { get; set; }
|
public ConnectionConfig CurrentConnectionConfig { get; set; }
|
||||||
public Dictionary<string, object> TempItems { get; set; }
|
public Dictionary<string, object> TempItems { get; set; }
|
||||||
|
public bool IsSystemTablesConfig { get { return this.CurrentConnectionConfig.InitKeyType == InitKeyType.SystemTable; } }
|
||||||
public Guid ContextID { get; set; }
|
public Guid ContextID { get; set; }
|
||||||
public MappingTableList MappingTables = new MappingTableList();
|
public MappingTableList MappingTables = new MappingTableList();
|
||||||
public MappingColumnList MappingColumns = new MappingColumnList();
|
public MappingColumnList MappingColumns = new MappingColumnList();
|
||||||
|
@ -16,16 +16,7 @@ namespace SqlSugar
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class SqlSugarClient : SqlSugarAccessory, IDisposable
|
public partial class SqlSugarClient : SqlSugarAccessory, IDisposable
|
||||||
{
|
{
|
||||||
#region Properties
|
|
||||||
public bool IsSystemTablesConfig
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this.CurrentConnectionConfig.InitKeyType == InitKeyType.SystemTable;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Constructor
|
#region Constructor
|
||||||
public SqlSugarClient(ConnectionConfig config)
|
public SqlSugarClient(ConnectionConfig config)
|
||||||
{
|
{
|
||||||
@ -508,10 +499,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
return _EntityProvider;
|
return _EntityProvider;
|
||||||
}
|
}
|
||||||
set
|
set { base._EntityProvider = value; }
|
||||||
{
|
|
||||||
base._EntityProvider = value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@ -527,10 +515,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
return _QueryFilterProvider;
|
return _QueryFilterProvider;
|
||||||
}
|
}
|
||||||
set
|
set { base._QueryFilterProvider = value; }
|
||||||
{
|
|
||||||
base._QueryFilterProvider = value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@ -540,9 +525,7 @@ namespace SqlSugar
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (_SimpleClient == null)
|
if (_SimpleClient == null)
|
||||||
{
|
|
||||||
_SimpleClient = new SimpleClient(this);
|
_SimpleClient = new SimpleClient(this);
|
||||||
}
|
|
||||||
return _SimpleClient;
|
return _SimpleClient;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user