You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
670 B
35 lines
670 B
using Microsoft.AspNetCore.Mvc.Filters;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Wood.Data.Repository
|
|
{
|
|
/// <summary>
|
|
/// 工作单元依赖接口
|
|
/// </summary>
|
|
public interface IUnitOfWork
|
|
{
|
|
/// <summary>
|
|
/// 开启工作单元处理
|
|
/// </summary>
|
|
void BeginTransaction();
|
|
|
|
/// <summary>
|
|
/// 提交工作单元处理
|
|
/// </summary>
|
|
void CommitTransaction();
|
|
|
|
/// <summary>
|
|
/// 回滚工作单元处理
|
|
/// </summary>
|
|
void RollbackTransaction();
|
|
|
|
/// <summary>
|
|
/// 执行完毕(无论成功失败)
|
|
/// </summary>
|
|
void OnCompleted();
|
|
}
|
|
}
|
|
|