mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-02 15:16:37 +08:00
15 lines
333 B
C#
15 lines
333 B
C#
|
|
using Yi.Framework.Infrastructure.Ddd.Repositories;
|
|||
|
|
|
|||
|
|
namespace Yi.Framework.Infrastructure.Uow
|
|||
|
|
{
|
|||
|
|
public interface IUnitOfWork : IDisposable
|
|||
|
|
{
|
|||
|
|
bool IsTran { get; set; }
|
|||
|
|
bool IsCommit { get; set; }
|
|||
|
|
bool IsClose { get; set; }
|
|||
|
|
|
|||
|
|
IRepository<T> GetRepository<T>();
|
|||
|
|
bool Commit();
|
|||
|
|
}
|
|||
|
|
}
|