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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using UnivateProperties_API.Containers.Property;
  4. using UnivateProperties_API.Model.ProcessFlow;
  5. using UnivateProperties_API.Model.Region;
  6. using UnivateProperties_API.Model.Timeshare;
  7. using UnivateProperties_API.Model.Users;
  8. namespace UnivateProperties_API.Model.Properties
  9. {
  10. public class Property : BaseEntity
  11. {
  12. #region Properties
  13. [ForeignKey("PropertyType")]
  14. public int PropertyTypeId { get; set; }
  15. public string PropertyName { get; set; }
  16. public string Unit { get; set; }
  17. public decimal OperationalCosts { get; set; }
  18. public decimal Price { get; set; }
  19. public string PricePer { get; set; }
  20. public bool IsSale { get; set; }
  21. public string Description { get; set; }
  22. public string ShortDescription { get; set; }
  23. public string AddressLine1 { get; set; }
  24. public string AddressLine2 { get; set; }
  25. public string AddressLine3 { get; set; }
  26. public int SuburbId { get; set; }
  27. public int CityId { get; set; }
  28. public int ProvinceId { get; set; }
  29. public bool Published { get; set; }
  30. public string VirtualTour { get; set; }
  31. public string Video { get; set; }
  32. [ForeignKey("Status")]
  33. public int? StatusId { get; set; }
  34. [ForeignKey("Owner")]
  35. public int? OwnerId { get; set; }
  36. [ForeignKey("Agent")]
  37. public int? AgentId { get; set; }
  38. [ForeignKey("Agency")]
  39. public int? AgencyId { get; set; }
  40. public virtual PropertyType PropertyType { get; set; }
  41. public virtual Province Province { get; set; }
  42. public virtual City City { get; set; }
  43. public virtual Suburb Suburb { get; set; }
  44. public virtual Status Status { get; set; }
  45. public virtual Individual Owner { get; set; }
  46. public virtual Agent Agent { get; set; }
  47. public virtual Agency Agency { get; set; }
  48. public ICollection<PropertyUserField> PropertyUserFields { get; set; }
  49. public ICollection<PropertyImage> PropertyImages { get; set; }
  50. public ICollection<BidItem> BidItems { get; set; }
  51. public ICollection<ProcessFlow.ProcessFlow> ProcessFlows { get; set; }
  52. [NotMapped]
  53. public List<PropertyDetailGroup> DisplayData { get; set; }
  54. #endregion
  55. }
  56. }