Browse Source

code optimization

pull/8/head
sunkaixuna 3 years ago
parent
commit
33347bc324
  1. 13
      Src/Asp.Net/SqlSugar/Interface/ISugarRepository.cs
  2. 5
      Src/Asp.Net/SqlSugar/SimpleClient.cs
  3. 1
      Src/Asp.Net/SqlSugar/SqlSugar.csproj

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

5
Src/Asp.Net/SqlSugar/SimpleClient.cs

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

1
Src/Asp.Net/SqlSugar/SqlSugar.csproj

@ -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" />

Loading…
Cancel
Save