chore: deleted all the stuff we don't need here

This commit is contained in:
2025-09-20 23:08:08 +03:00
parent 8ea18f1096
commit 44881818a2
67 changed files with 1 additions and 3139 deletions

View File

@@ -1,4 +1,3 @@
using GamificationService.Models.Database;
using Microsoft.EntityFrameworkCore.Storage;
namespace GamificationService.Database.Repositories;
@@ -8,12 +7,6 @@ public class UnitOfWork : IDisposable
#region fields
private ApplicationContext _context;
private GenericRepository<UserProfile> _userProfileRepository;
private GenericRepository<ApplicationRole> _roleRepository;
private GenericRepository<Right?> _rightRepository;
private GenericRepository<RefreshToken> _refreshTokenRepository;
private GenericRepository<RoleRight> _roleRightRepository;
private GenericRepository<UserRole> _userRoleRepository;
#endregion
@@ -28,78 +21,6 @@ public class UnitOfWork : IDisposable
#region Properties
public GenericRepository<UserProfile> UserProfileRepository
{
get
{
if (this._userProfileRepository == null)
{
this._userProfileRepository = new GenericRepository<UserProfile>(_context);
}
return _userProfileRepository;
}
}
public GenericRepository<ApplicationRole> RoleRepository
{
get
{
if (this._roleRepository == null)
{
this._roleRepository = new GenericRepository<ApplicationRole>(_context);
}
return _roleRepository;
}
}
public GenericRepository<Right?> RightRepository
{
get
{
if (this._rightRepository == null)
{
this._rightRepository = new GenericRepository<Right?>(_context);
}
return _rightRepository;
}
}
public GenericRepository<RefreshToken> RefreshTokenRepository
{
get
{
if (this._refreshTokenRepository == null)
{
this._refreshTokenRepository = new GenericRepository<RefreshToken>(_context);
}
return _refreshTokenRepository;
}
}
public GenericRepository<RoleRight> RoleRightRepository
{
get
{
if (this._roleRightRepository == null)
{
this._roleRightRepository = new GenericRepository<RoleRight>(_context);
}
return _roleRightRepository;
}
}
public GenericRepository<UserRole> UserRoleRepository
{
get
{
if (this._userRoleRepository == null)
{
this._userRoleRepository = new GenericRepository<UserRole>(_context);
}
return _userRoleRepository;
}
}
#endregion
public bool Save()