Code optimization

This commit is contained in:
sunkaixuan 2017-09-06 10:21:59 +08:00
parent 1660cc62b5
commit b1dd6c96e5
2 changed files with 4 additions and 20 deletions

View File

@ -13,6 +13,7 @@ namespace SqlSugar
public SqlSugarClient Context { get; set; }
public ConnectionConfig CurrentConnectionConfig { 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 MappingTableList MappingTables = new MappingTableList();
public MappingColumnList MappingColumns = new MappingColumnList();

View File

@ -16,16 +16,7 @@ namespace SqlSugar
/// </summary>
public partial class SqlSugarClient : SqlSugarAccessory, IDisposable
{
#region Properties
public bool IsSystemTablesConfig
{
get
{
return this.CurrentConnectionConfig.InitKeyType == InitKeyType.SystemTable;
}
}
#endregion
#region Constructor
public SqlSugarClient(ConnectionConfig config)
{
@ -508,10 +499,7 @@ namespace SqlSugar
}
return _EntityProvider;
}
set
{
base._EntityProvider = value;
}
set { base._EntityProvider = value; }
}
#endregion
@ -527,10 +515,7 @@ namespace SqlSugar
}
return _QueryFilterProvider;
}
set
{
base._QueryFilterProvider = value;
}
set { base._QueryFilterProvider = value; }
}
#endregion
@ -540,9 +525,7 @@ namespace SqlSugar
get
{
if (_SimpleClient == null)
{
_SimpleClient = new SimpleClient(this);
}
return _SimpleClient;
}
}