| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- 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>
- /// CustomId for identification
- /// </summary>
- public int CustomId { 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>
- /// 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; }
- }
- }
- }
|