Skip to content

IUserSeachRepository

Namespace: SlottyMedia.Database.Repository.SearchRepo

Interface for the User Search Repository.

public interface IUserSeachRepository : SlottyMedia.Database.Repository.IDatabaseRepository`1[[SlottyMedia.Database.Daos.UserDao, SlottyMedia.Database, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Implements IDatabaseRepository<UserDao>

Methods

GetUsersByUserName(String)

Gets users by their username with pagination.

Task<List<UserDao>> GetUsersByUserName(string userName)

Parameters

userName String
The username to search for.

Returns

Task<List<UserDao>>
A task that represents the asynchronous operation. The task result contains a list of users.

Exceptions

DatabaseMissingItemException
Thrown when the entity is not found in the database.

GeneralDatabaseException
Thrown when an unexpected error occurs.

DatabaseJsonConvertFailed
Thrown when the Database Result was not able to be converted to a Class Dao