Implementación fundacional del proyecto PruebaGentle: - Arquitectura Clean/Hexagonal: Core, Infrastructure, API - 6 Stored Procedures para CRUD + autenticación - JWT authentication con BCrypt password hashing - Docker Compose (SQL Server + Backend) - Solución .NET 10 con Dapper + SqlClient Closes #1
14 lines
362 B
C#
14 lines
362 B
C#
using PruebaGentle.Core.Entities;
|
|
|
|
namespace PruebaGentle.Core.Interfaces;
|
|
|
|
public interface IUserRepository
|
|
{
|
|
Task<User> CreateAsync(User user);
|
|
Task<User?> GetByIdAsync(int id);
|
|
Task<IEnumerable<User>> GetAllAsync();
|
|
Task<User?> UpdateAsync(User user);
|
|
Task<bool> DeleteAsync(int id);
|
|
Task<User?> GetByUsernameAsync(string username);
|
|
}
|