using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GreenTree.Nachtragsmanagement.Core.Domain.Misc; namespace GreenTree.Nachtragsmanagement.Core.Domain.User { public class User : BaseEntity { #region Fields /// /// Rolelist /// private ICollection _roles; /// /// Notificationlist /// private ICollection _mailNotifications; #endregion /// /// CustomId for identification /// public int CustomId { get; set; } /// /// Forename /// public string Forename { get; set; } /// /// Lastname /// public string Lastname { get; set; } /// /// Mail-Address /// public string MailAddress { get; set; } /// /// Password /// public string Password { get; set; } /// /// Roles the user have /// public virtual ICollection Roles { get { return _roles ?? (_roles = new List()); } protected set { _roles = value; } } /// /// MailNotification related to the user /// public virtual ICollection MailNotifications { get { return _mailNotifications ?? ( _mailNotifications = new List()); } protected set { _mailNotifications = value; } } } }