25 lines
506 B
C#
25 lines
506 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace XP.Common.Database.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// 数据库事务接口
|
|
/// </summary>
|
|
public interface IDbTransaction : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// 提交事务
|
|
/// </summary>
|
|
IDbExecuteResult Commit();
|
|
|
|
/// <summary>
|
|
/// 回滚事务
|
|
/// </summary>
|
|
IDbExecuteResult Rollback();
|
|
}
|
|
}
|