DotBased/DotBased.AspNet.Authority/Interfaces/IUserRepository.cs
2024-12-23 00:59:13 +01:00

9 lines
360 B
C#

namespace DotBased.AspNet.Authority.Interfaces;
public interface IUserRepository<TUser, TId> where TUser : class where TId : IEquatable<TId>
{
public Task<TUser?> GetUserByIdAsync(TId id);
public Task<TId> GetUserIdAsync(TUser user);
public Task SetVersion(TUser user, long version);
public Task SetSecurityVersion(TUser user, long version);
}