| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- 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
- /// <summary>
- /// Rolelist
- /// </summary>
- private ICollection<Role> _roles;
- /// <summary>
- /// Notificationlist
- /// </summary>
- private ICollection<MailNotification> _mailNotifications;
- #endregion
- /// <summary>
- /// CustomNumber for identification
- /// </summary>
- public string CustomNumber { get; set; }
- /// <summary>
- /// Forename
- /// </summary>
- public string Forename { get; set; }
- /// <summary>
- /// Lastname
- /// </summary>
- public string Lastname { get; set; }
- /// <summary>
- /// Mail-Address
- /// </summary>
- public string MailAddress { get; set; }
- /// <summary>
- /// Password
- /// </summary>
- public string Password { get; set; }
- /// <summary>
- /// The role the current user is using
- /// </summary>
- public Role CurrentRole { get; set; }
- /// <summary>
- /// Roles the user have
- /// </summary>
- public virtual ICollection<Role> Roles
- {
- get { return _roles ?? (_roles = new List<Role>()); }
- protected set { _roles = value; }
- }
- /// <summary>
- /// MailNotification related to the user
- /// </summary>
- public virtual ICollection<MailNotification> MailNotifications
- {
- get { return _mailNotifications ?? ( _mailNotifications = new List<MailNotification>()); }
- protected set { _mailNotifications = value; }
- }
- }
- }
|