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

SMTPAccount.cs 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. [ForeignKey("SMTPHost")]
  31. public int SMTPHostId { get; set; }
  32. public virtual SMTPHost SMTPHost { get; set; }
  33. public virtual ICollection<Email> Emails { get; set; }
  34. #endregion Properties
  35. }
  36. }