UserPreferenceRepository class
namespace: Serenity.Extensions.Repositories assembly: Serenity.Extensions
Repository for managing user preferences.
public class UserPreferenceRepository : BaseRepository
Public Members
| name | description |
|---|---|
| UserPreferenceRepository(…) | Repository for managing user preferences. |
| Retrieve(…) | Retrieves a user preference, which is empty for a user without an identifier. |
| Update(…) | Updates or deletes a user preference of the current user. |
Protected Members
| name | description |
|---|---|
| virtual GetUserId() | Gets the id of the current user, converted to the type of the user ID field, or null when the user has no identifier, e.g. when not logged in, as preferences are kept per user. |
See Also
- class BaseRepository
- Source: UserPreferenceRepository.cs