API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Individual.cs 1.0KB

123456789101112131415161718192021222324252627282930313233
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using UnivateProperties_API.Model.Banks;
  5. using UnivateProperties_API.Model.Misc;
  6. using UnivateProperties_API.Model.Properties;
  7. namespace UnivateProperties_API.Model.Users
  8. {
  9. public class Individual : Person
  10. {
  11. #region Constructor
  12. public Individual()
  13. {
  14. }
  15. #endregion Constructor
  16. #region Properties
  17. public string IdNumber { get; set; }
  18. public string CompanyRegNumber { get; set; }
  19. public string MaritalStatus { get; set; }
  20. [ForeignKey("Address")]
  21. public int? AddressId { get; set; }
  22. public string IncomeTaxNumber { get; set; }
  23. [ForeignKey("BankAccount")]
  24. public int? BankAccountId { get; set; }
  25. public virtual Address Address { get; set; }
  26. public virtual BankAccount BankAccount { get; set; }
  27. public virtual ICollection<Property> Properties { get; set; }
  28. #endregion Properties
  29. }
  30. }