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(); + } +}