using System.ComponentModel.DataAnnotations.Schema; using DigitalData.UserManager.Domain.Entities; namespace EnvelopeGenerator.Domain.Entities { [Table("TBDD_USER", Schema = "dbo")] public class EGUser : User { public EGUser() { } public EGUser(User user) { Id = user.Id; Prename = user.Prename; Name = user.Name; Username = user.Username; Shortname = user.Shortname; Email = user.Email; Language = user.Language; Comment = user.Comment; Deleted = user.Deleted; DateFormat = user.DateFormat; Active = user.Active; GeneralViewer = user.GeneralViewer; WanEnvironment = user.WanEnvironment; UserIdFkIntEcm = user.UserIdFkIntEcm; DeletedWhen = user.DeletedWhen; DeletedWho = user.DeletedWho; } #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 } }