Init Git
This commit is contained in:
12
AMREZ.EOP.Abstractions/Infrastructures/Common/IUnitOfWork.cs
Normal file
12
AMREZ.EOP.Abstractions/Infrastructures/Common/IUnitOfWork.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Data;
|
||||
using AMREZ.EOP.Abstractions.Applications.Tenancy;
|
||||
|
||||
namespace AMREZ.EOP.Abstractions.Infrastructures.Common;
|
||||
|
||||
public interface IUnitOfWork
|
||||
{
|
||||
Task BeginAsync(ITenantContext tenant, IsolationLevel isolation = IsolationLevel.ReadCommitted, CancellationToken ct = default);
|
||||
Task CommitAsync(CancellationToken ct = default);
|
||||
Task RollbackAsync(CancellationToken ct = default);
|
||||
string Backend { get; } // "ef" | "redis"
|
||||
}
|
||||
Reference in New Issue
Block a user