Skip to content

BaseUserRetrieveService<TRow> class

namespace: Serenity.Extensions   assembly: Serenity.Extensions

Base user retrieve service that provides common functionality for user retrieve services.

public abstract class BaseUserRetrieveService<TRow> : BaseUserRetrieveService
    where TRow : class, IRow, IIdRow, INameRow, new()
parameter description
TRow User row type
cache Cache
sqlConnections SQL connections

Protected Members

name description
BaseUserRetrieveService(…) Base user retrieve service that provides common functionality for user retrieve services.
override GetCacheGroupKey() Gets the cache group key for user retrieval.
override GetUsernameCacheKey(…) Gets the cache key for the specified username. If the row implements INormalizedUsernameRow, it is based on the normalized username.
override IsValidUserId(…) Checks if the specified user ID is valid.
virtual LoadByCriteria(…) Loads a user from the database by the specified criteria.
override LoadById(…) Loads the user by the specified ID from database.
override LoadByUsername(…) Loads the user by the specified username from database. If the row implements INormalizedUsernameRow, the normalized username field is used.
abstract ToUserDefinition(…) Converts the specified row to a user definition.

See Also