Role.cs 941 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace GreenTree.Nachtragsmanagement.Core.Domain.User
  7. {
  8. public class Role : BaseEntity
  9. {
  10. #region Fields
  11. /// <summary>
  12. /// Functionlist
  13. /// </summary>
  14. private ICollection<Function> _functions;
  15. #endregion
  16. /// <summary>
  17. /// Description
  18. /// </summary>
  19. public string Description { get; set; }
  20. /// <summary>
  21. /// Level of right (higher value means higher right)
  22. /// </summary>
  23. public int Level { get; set; }
  24. /// <summary>
  25. /// Functions the role have
  26. /// </summary>
  27. public virtual ICollection<Function> Functions
  28. {
  29. get { return _functions ?? (_functions = new List<Function>()); }
  30. protected set { _functions = value; }
  31. }
  32. }
  33. }