From 33347bc324c7d82fa029d9013959eabd2cabdb00 Mon Sep 17 00:00:00 2001 From: sunkaixuna <610262374@qq.com> Date: Thu, 19 Aug 2021 12:47:37 +0800 Subject: [PATCH] code optimization --- Src/Asp.Net/SqlSugar/Interface/ISugarRepository.cs | 13 +++++++++++++ Src/Asp.Net/SqlSugar/SimpleClient.cs | 5 ----- Src/Asp.Net/SqlSugar/SqlSugar.csproj | 1 + 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 Src/Asp.Net/SqlSugar/Interface/ISugarRepository.cs diff --git a/Src/Asp.Net/SqlSugar/Interface/ISugarRepository.cs b/Src/Asp.Net/SqlSugar/Interface/ISugarRepository.cs new file mode 100644 index 000000000..ca4821c81 --- /dev/null +++ b/Src/Asp.Net/SqlSugar/Interface/ISugarRepository.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SqlSugar +{ + public interface ISugarRepository + { + ISqlSugarClient Context { get; set; } + } +} diff --git a/Src/Asp.Net/SqlSugar/SimpleClient.cs b/Src/Asp.Net/SqlSugar/SimpleClient.cs index db417ed45..f17e11256 100644 --- a/Src/Asp.Net/SqlSugar/SimpleClient.cs +++ b/Src/Asp.Net/SqlSugar/SimpleClient.cs @@ -319,9 +319,4 @@ namespace SqlSugar [Obsolete("Use AsSugarClient()")] public ISqlSugarClient FullClient { get { return this.Context; } } } - - public interface ISugarRepository - { - ISqlSugarClient Context { get; set; } - } } diff --git a/Src/Asp.Net/SqlSugar/SqlSugar.csproj b/Src/Asp.Net/SqlSugar/SqlSugar.csproj index 57426e281..bf786cdd3 100644 --- a/Src/Asp.Net/SqlSugar/SqlSugar.csproj +++ b/Src/Asp.Net/SqlSugar/SqlSugar.csproj @@ -89,6 +89,7 @@ +