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.

Property.cs 2.5KB

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