31 lines
737 B
C#
Executable File
31 lines
737 B
C#
Executable File
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Opsoft.NetCore.O3App.Domain
|
|
{
|
|
public interface IDapperContext : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Indicates if transaction is started.
|
|
/// </summary>
|
|
bool IsTransactionStarted { get; }
|
|
|
|
/// <summary>
|
|
/// Begins transaction.
|
|
/// </summary>
|
|
void BeginTransaction();
|
|
|
|
/// <summary>
|
|
/// Commits operations of transaction.
|
|
/// </summary>
|
|
void Commit();
|
|
|
|
/// <summary>
|
|
/// Rollbacks operations of transaction.
|
|
/// </summary>
|
|
void Rollback();
|
|
}
|
|
} |