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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #region Properties
  12. public string CreatedBy { get; set; }
  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 int? StatusId { get; set; }
  31. public int? OwnerId { get; set; }
  32. public int? AgentId { get; set; }
  33. public int? AgencyId { get; set; }
  34. public virtual PropertyType PropertyType { get; set; }
  35. public virtual Province Province { get; set; }
  36. public virtual City City { get; set; }
  37. public virtual Suburb Suburb { get; set; }
  38. public virtual Status Status { get; set; }
  39. public virtual Individual Owner { get; set; }
  40. public virtual Agent Agent { get; set; }
  41. public virtual Agency Agency { get; set; }
  42. public ICollection<PropertyUserField> PropertyUserFields { get; set; }
  43. public ICollection<PropertyImage> PropertyImages { get; set; }
  44. [NotMapped]
  45. public List<PropertyDetailGroup> DisplayData { get; set; }
  46. #endregion
  47. }
  48. }