Fix db seeding, migration, repository services
This commit is contained in:
parent
872dc1e263
commit
6b87902ca7
22 changed files with 606 additions and 64 deletions
|
@ -5,10 +5,10 @@ using CSR.Domain.Entities;
|
|||
public interface IUserRepository
|
||||
{
|
||||
Task<User?> GetByIdAsync(int id);
|
||||
Task<User?> GetByUsernameAsync(string username);
|
||||
// Task<User?> GetByEmailAsync(string email);
|
||||
// Task<User?> GetByUsernameAsync(string username);
|
||||
// Task<IEnumerable<User>> GetAllAsync();
|
||||
Task AddAsync(User user);
|
||||
Task<IEnumerable<User>?> GetAllByRoleIdAsync(int roleId);
|
||||
Task<User?> AddAsync(User user);
|
||||
Task UpdateAsync(User user);
|
||||
Task DeleteAsync(int id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue