API
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

SMTPAccount.cs 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace UnivateProperties_API.Model.Communication
  4. {
  5. public class SMTPAccount : BaseEntity
  6. {
  7. #region Constructors
  8. public SMTPAccount()
  9. {
  10. }
  11. public SMTPAccount(string address)
  12. {
  13. Address = address;
  14. }
  15. public SMTPAccount(string address, string displayName)
  16. {
  17. Address = address;
  18. DisplayName = displayName;
  19. }
  20. public SMTPAccount(string address, string displayName, int smtpHostId)
  21. {
  22. Address = address;
  23. DisplayName = displayName;
  24. SMTPHostId = smtpHostId;
  25. }
  26. #endregion Constructors
  27. #region Properties
  28. public string Address { get; set; }
  29. public string DisplayName { get; set; }
  30. public bool Default { get; set; }
  31. [ForeignKey("SMTPHost")]
  32. public int SMTPHostId { get; set; }
  33. public virtual SMTPHost SMTPHost { get; set; }
  34. public virtual ICollection<Email> Emails { get; set; }
  35. public virtual ICollection<Template> Templates { get; set; }
  36. #endregion Properties
  37. }
  38. }