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.2KB

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