2024-12-25 22:50:04 +01:00
|
|
|
namespace DotBased.AspNet.Authority.Repositories;
|
2024-12-21 15:30:17 +01:00
|
|
|
|
2024-12-26 20:01:57 +01:00
|
|
|
public interface IUserRepository<TUser> where TUser : class
|
2024-12-21 15:30:17 +01:00
|
|
|
{
|
2024-12-26 20:01:57 +01:00
|
|
|
public Task<TUser?> GetUserByIdAsync(string id);
|
|
|
|
public Task<string> GetUserIdAsync(TUser user);
|
2025-01-03 00:14:12 +01:00
|
|
|
public Task<TUser?> GetUserByEmailAsync(string email);
|
|
|
|
public Task SetVersionAsync(TUser user, long version);
|
|
|
|
public Task<long> GetVersionAsync(TUser user);
|
|
|
|
public Task SetSecurityVersionAsync(TUser user, long version);
|
|
|
|
public Task<long> GetSecurityVersionAsync(TUser user);
|
|
|
|
public Task<TUser?> CreateUserAsync(TUser user);
|
|
|
|
public Task<TUser?> UpdateUserAsync(TUser user);
|
|
|
|
public Task<bool> DeleteUserAsync(TUser user);
|
2024-12-21 15:30:17 +01:00
|
|
|
}
|