Beautification code

This commit is contained in:
sunkaixuan
2019-05-07 08:24:44 +08:00
parent 032631db5f
commit da62607fa9
3 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SqlSugar
{
public interface ITenant
{
void BeginAllTran();
void CommitAllTran();
void RollbackAllTran();
}
}

View File

@@ -124,6 +124,7 @@
<Compile Include="Infrastructure\Mapper.cs" />
<Compile Include="Interface\ISaveable.cs" />
<Compile Include="Interface\ISqlSugarClient.cs" />
<Compile Include="Interface\ITenant.cs" />
<Compile Include="OnlyNet\PostgreSQLExpressionContext.cs" />
<Compile Include="Realization\Oracle\Deleteable\OracleDeleteable.cs" />
<Compile Include="Realization\Oracle\Insertable\OracleInsertable.cs" />

View File

@@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace SqlSugar
{
public class SqlSugarClient : ISqlSugarClient
public class SqlSugarClient : ISqlSugarClient, ITenant
{
#region Gobal Property
private ISqlSugarClient _Context = null;