mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 18:14:44 +00:00
Removes the USP_* stored procedures for Auth, Location, and Brewery data access in favour of services built with Dapper. Adds a new Features.Locations slice and optimistic concurrency support for the Brewery slice.
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using Domain.Entities;
|
|
|
|
namespace Features.UserManagement.Repository;
|
|
|
|
/// <summary>
|
|
/// Repository for CRUD operations on user account records.
|
|
/// </summary>
|
|
public interface IUserAccountRepository
|
|
{
|
|
/// <summary>Returns <c>null</c> if no user account exists with the given ID.</summary>
|
|
Task<UserAccount?> GetByIdAsync(Guid id);
|
|
|
|
/// <param name="limit"><c>null</c> for no limit.</param>
|
|
/// <param name="offset"><c>null</c> for no offset.</param>
|
|
Task<IEnumerable<UserAccount>> GetAllAsync(int? limit, int? offset);
|
|
|
|
/// <param name="userAccount">Must have a valid <c>UserAccountId</c>.</param>
|
|
Task UpdateAsync(UserAccount userAccount);
|
|
|
|
Task DeleteAsync(Guid id);
|
|
|
|
/// <summary>Returns <c>null</c> if no user account exists with the given username.</summary>
|
|
Task<UserAccount?> GetByUsernameAsync(string username);
|
|
|
|
/// <summary>Returns <c>null</c> if no user account exists with the given email address.</summary>
|
|
Task<UserAccount?> GetByEmailAsync(string email);
|
|
}
|