code optimization

This commit is contained in:
sunkaixuna
2021-08-19 12:47:37 +08:00
parent 05b36457e7
commit 33347bc324
3 changed files with 14 additions and 5 deletions

View File

@@ -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; }
}
}

View File

@@ -319,9 +319,4 @@ namespace SqlSugar
[Obsolete("Use AsSugarClient()")] [Obsolete("Use AsSugarClient()")]
public ISqlSugarClient FullClient { get { return this.Context; } } public ISqlSugarClient FullClient { get { return this.Context; } }
} }
public interface ISugarRepository
{
ISqlSugarClient Context { get; set; }
}
} }

View File

@@ -89,6 +89,7 @@
<Compile Include="Abstract\InsertableProvider\InsertableProvider.cs" /> <Compile Include="Abstract\InsertableProvider\InsertableProvider.cs" />
<Compile Include="Abstract\DeleteProvider\DeleteableProvider.cs" /> <Compile Include="Abstract\DeleteProvider\DeleteableProvider.cs" />
<Compile Include="ExpressionsToSql\Subquery\Items\SubAs.cs" /> <Compile Include="ExpressionsToSql\Subquery\Items\SubAs.cs" />
<Compile Include="Interface\ISugarRepository.cs" />
<Compile Include="Interface\IParameterInsertable.cs" /> <Compile Include="Interface\IParameterInsertable.cs" />
<Compile Include="Abstract\InsertableProvider\ParameterInsertable.cs" /> <Compile Include="Abstract\InsertableProvider\ParameterInsertable.cs" />
<Compile Include="Abstract\Reportable\ReportableProvider.cs" /> <Compile Include="Abstract\Reportable\ReportableProvider.cs" />