Implement UoW

This commit is contained in:
lumijiez
2025-05-27 12:48:12 +03:00
parent 8c81d27d28
commit 89ac29c1fd
2 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using Printbase.Domain.Repositories;
namespace Printbase.Application;
public interface IUnitOfWork
{
public IProductRepository ProductRepository { get; }
public ICategoryRepository CategoryRepository { get; }
public IProductVariantRepository ProductVariantRepository { get; }
Task SaveAsync();
Task BeginTransactionAsync();
Task CommitTransactionAsync();
Task RollbackTransactionAsync();
}