From f23f53babf948504065279017cea316eb88bebd1 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Fri, 27 Jul 2018 18:01:53 +0800 Subject: [PATCH] add captransaction interface. --- src/DotNetCore.CAP/ICapTransaction.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/DotNetCore.CAP/ICapTransaction.cs diff --git a/src/DotNetCore.CAP/ICapTransaction.cs b/src/DotNetCore.CAP/ICapTransaction.cs new file mode 100644 index 0000000..7134438 --- /dev/null +++ b/src/DotNetCore.CAP/ICapTransaction.cs @@ -0,0 +1,15 @@ +using System; + +namespace DotNetCore.CAP +{ + public interface ICapTransaction : IDisposable + { + bool AutoCommit { get; set; } + + object DbTransaction { get; set; } + + void Commit(); + + void Rollback(); + } +}