Class UserSqlModel
- Namespace
- OpenSettings.Domains.Sql.Entities
- Assembly
- OpenSettings.dll
Represents a user entity.
[Table("Users")]
public class UserSqlModel : EntityBase<Guid>
- Inheritance
-
UserSqlModel
- Inherited Members
Properties
AuthType
The authentication type used by the user (e.g., "Machine", "OpenIdConnect").
public AuthType AuthType { get; set; }
Property Value
DisplayName
The display name of the user, which may be different from their username or full name.
public string DisplayName { get; set; }
Property Value
The user's email address.
public string Email { get; set; }
Property Value
EmailLowercase
The lowercase version of the Email, typically used for case-insensitive comparisons.
public string EmailLowercase { get; set; }
Property Value
ExternalId
The unique identifier provided by the identity provider if any.
public string ExternalId { get; set; }
Property Value
FamilyName
The family name
public string FamilyName { get; set; }
Property Value
FamilyNameLowercase
The lowercase version of the FamilyName, typically used for case-insensitive comparisons.
public string FamilyNameLowercase { get; set; }
Property Value
FullName
The full name of the user.
public string FullName { get; set; }
Property Value
FullNameLowercase
The lowercase version of the FullName, typically used for case-insensitive comparisons.
public string FullNameLowercase { get; set; }
Property Value
GivenName
The given name of the user.
public string GivenName { get; set; }
Property Value
GivenNameLowercase
The lowercase version of the GivenName, typically used for case-insensitive comparisons.
public string GivenNameLowercase { get; set; }
Property Value
HashedPassword
The hashed password for authentication.
public string HashedPassword { get; set; }
Property Value
IdentityProvider
The identity provider name (e.g., "local", Google", "Facebook") if the user authenticated using external service.
public string IdentityProvider { get; set; }
Property Value
Initials
The user's initials, typically derived from their name. (using GetInitials(string) helper method)
public string Initials { get; set; }
Property Value
IsActive
Indicates whether the user account is active.
public bool IsActive { get; set; }
Property Value
IsEmailVerified
public bool IsEmailVerified { get; set; }
Property Value
LastLogin
The date and time when the user last logged in.
public DateTime LastLogin { get; set; }
Property Value
Locale
public string Locale { get; set; }
Property Value
MiddleName
public string MiddleName { get; set; }
Property Value
PictureUrl
public string PictureUrl { get; set; }
Property Value
RowVersion
A concurrency token used for tracking changes.
Helps prevent conflicts during concurrent updates.
public byte[] RowVersion { get; set; }
Property Value
- byte[]
Slug
An url friendly version of the user, generated by trimming, converting to lowercase,
and replacing spaces or special characters with hyphens (using ToSlug(string) extension method).
public string Slug { get; set; }
Property Value
UserClaimMappings
The collection of user-claim mappings assigned to the user.
public virtual ICollection<UserClaimMappingSqlModel> UserClaimMappings { get; set; }
Property Value
UserGroupMappings
The collection of user-group mappings assigned to the user.
public virtual ICollection<UserGroupMappingSqlModel> UserGroupMappings { get; set; }
Property Value
UserNotificationMappings
The collection of user-notification mappings associated with the user.
public virtual ICollection<UserNotificationMappingSqlModel> UserNotificationMappings { get; set; }
Property Value
UserRoleMappings
The collection of user-role mappings assigned to the user.
public virtual ICollection<UserRoleMappingSqlModel> UserRoleMappings { get; set; }
Property Value
Username
The username of the user.
public string Username { get; set; }
Property Value
UsernameLowercase
The lowercase version of the Username, typically used for case-insensitive comparisons.
public string UsernameLowercase { get; set; }