From 9af67c5a8a3d7bdf63b93e00fc0c15fdf111730e Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 29 May 2019 17:27:36 +0800 Subject: [PATCH] Code optimization --- Src/Asp.Net/SqlSugar/SqlSugarClient.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs index 4e5167a42..619d13741 100644 --- a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs +++ b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs @@ -45,17 +45,17 @@ namespace SqlSugar #endregion #region Global variable - public SqlSugarProvider Context { get => GetContext(); } + public SqlSugarProvider Context { get { return GetContext(); } } public bool IsSystemTablesConfig => this.Context.IsSystemTablesConfig; - public ConnectionConfig CurrentConnectionConfig { get => _CurrentConnectionConfig; set => _CurrentConnectionConfig = value; } - public Guid ContextID { get => this.Context.ContextID; set => this.Context.ContextID = value; } + public ConnectionConfig CurrentConnectionConfig { get { return _CurrentConnectionConfig; } set { _CurrentConnectionConfig = value; } } + public Guid ContextID { get { return this.Context.ContextID; } set { this.Context.ContextID = value; } } - public MappingTableList MappingTables { get => _MappingTables; set => _MappingTables = value; } - public MappingColumnList MappingColumns { get => _MappingColumns; set => _MappingColumns = value; } - public IgnoreColumnList IgnoreColumns { get => _IgnoreColumns; set => _IgnoreColumns = value; } - public IgnoreColumnList IgnoreInsertColumns { get => _IgnoreInsertColumns; set => _IgnoreInsertColumns = value; } - public Dictionary TempItems { get => this.Context.TempItems; set => this.Context.TempItems = value; } + public MappingTableList MappingTables { get { return _MappingTables; } set { _MappingTables = value; } } + public MappingColumnList MappingColumns { get { return _MappingColumns; } set { _MappingColumns = value; } } + public IgnoreColumnList IgnoreColumns { get { return _IgnoreColumns; } set { _IgnoreColumns = value; } } + public IgnoreColumnList IgnoreInsertColumns { get { return _IgnoreInsertColumns; } set { _IgnoreInsertColumns = value; } } + public Dictionary TempItems { get { return this.Context.TempItems; } set { this.Context.TempItems = value; } } #endregion #region SimpleClient @@ -859,11 +859,11 @@ namespace SqlSugar #region Obsolete [Obsolete("Use EntityMaintenance")] - public EntityMaintenance EntityProvider { get => this.Context.EntityProvider; set => this.Context.EntityProvider = value; } + public EntityMaintenance EntityProvider { get { return this.Context.EntityProvider; } set { this.Context.EntityProvider = value; } } [Obsolete("Use Utilities")] - public IContextMethods RewritableMethods { get => this.Context.RewritableMethods; set => this.Context.RewritableMethods = value; } + public IContextMethods RewritableMethods { get { return this.Context.RewritableMethods; } set { this.Context.RewritableMethods = value; } } [Obsolete("Use GetSimpleClient")] - public SimpleClient SimpleClient => this.Context.SimpleClient; + public SimpleClient SimpleClient { get { return this.Context.SimpleClient; } } #endregion }