23 lines
604 B
C#
23 lines
604 B
C#
using Microsoft.EntityFrameworkCore.Storage;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace WMS.Web.Domain.Infrastructure
|
|
{
|
|
public interface ITransactionRepositories
|
|
{
|
|
/// <summary>
|
|
/// 获取事务 用来处理即时库存
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
IDbContextTransaction GetTransaction();
|
|
|
|
/// <summary>
|
|
/// 获取事务 用来处理即时库存
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
bool CommitTransaction(bool isRollback, IDbContextTransaction transaction);
|
|
}
|
|
}
|