using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; using System.ComponentModel; using DigitalData.UserManager.Domain.Entities; #if NETFRAMEWORK using System; #endif namespace EnvelopeGenerator.Domain.Entities { [Table("TBDD_USER", Schema = "dbo")] public class EGUser : User { [Required] [Column("GENERAL_VIEWER")] [StringLength(30)] [DefaultValue("NONE")] public string GeneralViewer { get; set; } [Required] [Column("WAN_ENVIRONMENT")] public bool WanEnvironment { get; set; } [Required] [Column("USERID_FK_INT_ECM")] public int UserIdFkIntEcm { get; set; } [Column("DELETED_WHEN")] public DateTime DeletedWhen { get; set; } [Column("DELETED_WHO")] [StringLength(50)] public string DeletedWho { get; set; } #region FORM_APP [NotMapped] public bool HasAccess { get; set; } [NotMapped] public bool IsAdmin { get; set; } [NotMapped] public bool GhostModeActive { get; set; } [NotMapped] public string FullName => $"{Prename} {Name}"; #endregion } }