DotBased/DotBased.AspNet.Authority/Interfaces/IUserRepository.cs

9 lines
360 B
C#
Raw Normal View History

2024-12-21 15:30:17 +01:00
namespace DotBased.AspNet.Authority.Interfaces;
2024-12-23 00:59:13 +01:00
public interface IUserRepository<TUser, TId> where TUser : class where TId : IEquatable<TId>
2024-12-21 15:30:17 +01:00
{
public Task<TUser?> GetUserByIdAsync(TId id);
public Task<TId> GetUserIdAsync(TUser user);
2024-12-23 00:59:13 +01:00
public Task SetVersion(TUser user, long version);
public Task SetSecurityVersion(TUser user, long version);
2024-12-21 15:30:17 +01:00
}