using Core; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using static Core.Enum; #nullable disable namespace LiMan.DB.DBModels { // // This is here so CodeMaid doesn't reorganize this document // [Table("AuthUsers")] public partial class AuthUserModel { #region Public Properties public AuthUserModel() { Claims = new HashSet(); } [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int UserID { get; set; } public string Username { get; set; } public string AD_Domain { get; set; } = ""; public string AD_User { get; set; } = ""; public string Cognome { get; set; } = "Cognome"; public string Nome { get; set; } = "Nome"; public virtual ICollection Claims { get; set; } [NotMapped] public bool IsActive { get => Claims != null && Claims.Count > 0; } #endregion Public Properties } }