Browse Source

add captransaction interface.

master
Savorboard 6 years ago
parent
commit
f23f53babf
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      src/DotNetCore.CAP/ICapTransaction.cs

+ 15
- 0
src/DotNetCore.CAP/ICapTransaction.cs View File

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

Loading…
Cancel
Save