From da62607fa92c9b8ba4fab5963b05539f1c5f53df Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 7 May 2019 08:24:44 +0800 Subject: [PATCH] Beautification code --- Src/Asp.Net/SqlSugar/Interface/ITenant.cs | 14 ++++++++++++++ Src/Asp.Net/SqlSugar/SqlSugar.csproj | 1 + Src/Asp.Net/SqlSugar/SqlSugarClient.cs | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 Src/Asp.Net/SqlSugar/Interface/ITenant.cs diff --git a/Src/Asp.Net/SqlSugar/Interface/ITenant.cs b/Src/Asp.Net/SqlSugar/Interface/ITenant.cs new file mode 100644 index 000000000..b0561e770 --- /dev/null +++ b/Src/Asp.Net/SqlSugar/Interface/ITenant.cs @@ -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(); + } +} diff --git a/Src/Asp.Net/SqlSugar/SqlSugar.csproj b/Src/Asp.Net/SqlSugar/SqlSugar.csproj index dd30ee858..89845e7c9 100644 --- a/Src/Asp.Net/SqlSugar/SqlSugar.csproj +++ b/Src/Asp.Net/SqlSugar/SqlSugar.csproj @@ -124,6 +124,7 @@ + diff --git a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs index 1e0112ba4..694328a04 100644 --- a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs +++ b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs @@ -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;