API
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Agent.cs 585B

123456789101112131415161718192021222324
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using UnivateProperties_API.Model.Properties;
  4. namespace UnivateProperties_API.Model.Users
  5. {
  6. public class Agent : Person
  7. {
  8. #region Constructor
  9. public Agent()
  10. {
  11. }
  12. #endregion Constructor
  13. #region Properties
  14. [ForeignKey("Agency")]
  15. public int? AgencyId { get; set; }
  16. public virtual Agency Agency { get; set; }
  17. public virtual ICollection<Property> Properties { get; set; }
  18. #endregion Properties
  19. }
  20. }