DotBased/DotBased.AspNet.Authority/Repositories/IUserRepository.cs
2024-12-25 22:50:04 +01:00

9 lines
362 B
C#

namespace DotBased.AspNet.Authority.Repositories;
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);
}