15c58522ef
- replace EfRepository/BaseDbContext/UtcValueConverter with BaseEfRepository and BaseRepository - add IEfRepository interface hierarchy - consolidate IEntity into Entity.cs, remove standalone IEntity.cs - add PagedResult - adjust all namespaces to HrynCo.DAL.Abstract / HrynCo.DAL.EF - add README.md with solution overview, versioning rules, class diagram - add AGENTS.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14 lines
394 B
C#
14 lines
394 B
C#
namespace HrynCo.DAL.Abstract;
|
|
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
public interface IUnitOfWork
|
|
{
|
|
Task<ITransaction> BeginTransactionAsync(CancellationToken cancellationToken = default);
|
|
ITransaction? GetCurrentTransaction();
|
|
|
|
Task ExecuteInTransactionAsync(Func<Task> action);
|
|
Task<TResult> ExecuteInTransactionAsync<TResult>(Func<Task<TResult>> action);
|
|
}
|