Skip to content

BaseUserListService<TRow> class

namespace: Serenity.Extensions   assembly: Serenity.Extensions

Base user list service that lists the users from their rows. The username is the name field of the row, and the display name, email and active state are read from it when it has IDisplayNameRow, IEmailRow and IIsActiveRow. Only these fields are selected, so nothing like the password hash is loaded.

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

Public Members

name description
virtual ListUsers(…)

Protected Members

name description
BaseUserListService(…) Base user list service that lists the users from their rows. The username is the name field of the row, and the display name, email and active state are read from it when it has IDisplayNameRow, IEmailRow and IIsActiveRow. Only these fields are selected, so nothing like the password hash is loaded.
virtual GetCriteria(…) Gets the criteria of the users to list when they are not asked for by who they are, from the options.
virtual GetTextCriteria(…) Gets the criteria for the text that the username, the display name or the email address should contain, if there is one.
virtual SelectFields(…) Selects the fields that a user of the list has.
virtual ToListItem(…) Converts a row, which has the fields selected by SelectFields, to a user of the list.
const MaxValuesPerQuery The number of identifiers or usernames that are asked for with one query, so the number of its parameters stays below what the databases allow.

See Also