Site.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.Site
  7. {
  8. public class Site : BaseEntity
  9. {
  10. #region Fields
  11. /// <summary>
  12. /// Userlist
  13. /// </summary>
  14. private ICollection<User.User> _users;
  15. /// <summary>
  16. /// Appendixlist
  17. /// </summary>
  18. private ICollection<Appendix.Appendix> _appendices;
  19. #endregion
  20. /// <summary>
  21. /// CustomNumber for identification
  22. /// </summary>
  23. public string CustomNumber { get; set; }
  24. /// <summary>
  25. /// Description
  26. /// </summary>
  27. public string Description { get; set; }
  28. /// <summary>
  29. /// Beginning of the site
  30. /// </summary>
  31. public DateTime Start { get; set; }
  32. /// <summary>
  33. /// Ending of the site
  34. /// </summary>
  35. public DateTime End { get; set; }
  36. /// <summary>
  37. /// Corresponding department handling the site
  38. /// </summary>
  39. public string Department { get; set; }
  40. /// <summary>
  41. /// Editable comment
  42. /// </summary>
  43. public string Comment { get; set; }
  44. /// <summary>
  45. /// Determines if the site is completely finished
  46. /// </summary>
  47. public bool Finished { get; set; }
  48. /// <summary>
  49. /// Users responsible for this site
  50. /// </summary>
  51. public virtual ICollection<User.User> Users
  52. {
  53. get { return _users ?? ( _users = new List<User.User>()); }
  54. protected set { _users = value; }
  55. }
  56. /// <summary>
  57. /// Appendices related to the site
  58. /// </summary>
  59. public virtual ICollection<Appendix.Appendix> Appendices
  60. {
  61. get { return _appendices ?? (_appendices = new List<Appendix.Appendix>()); }
  62. protected set { _appendices = value; }
  63. }
  64. }
  65. }