Implement UoW
This commit is contained in:
15
src/Printbase.Application/IUnitOfWork.cs
Normal file
15
src/Printbase.Application/IUnitOfWork.cs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user