12 lines
450 B
C#
12 lines
450 B
C#
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"
|
|
} |