refactor: modernized GenericRepository and UnitOfWork with newer code from Roma
This commit is contained in:
16
Database/UnitOfWork/IUnitOfWork.cs
Normal file
16
Database/UnitOfWork/IUnitOfWork.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
namespace GamificationService.Database.UnitOfWork;
|
||||
|
||||
public interface IUnitOfWork
|
||||
{
|
||||
#region Repositories
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
bool SaveChanges();
|
||||
Task<bool> SaveChangesAsync();
|
||||
Task BeginTransactionAsync();
|
||||
Task CommitTransactionAsync();
|
||||
Task RollbackTransactionAsync();
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user