API
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Property.cs 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using UnivateProperties_API.Containers.Property;
  4. using UnivateProperties_API.Model.Region;
  5. namespace UnivateProperties_API.Model.Property
  6. {
  7. public class Property : BaseEntity
  8. {
  9. #region Properties
  10. [ForeignKey("PropertyType")]
  11. public int PropertyTypeId { get; set; }
  12. public string PropertyName { get; set; }
  13. public string Unit { get; set; }
  14. public decimal OperationalCosts { get; set; }
  15. public decimal Price { get; set; }
  16. public string PricePer { get; set; }
  17. public bool IsSale { get; set; }
  18. public string Description { get; set; }
  19. public string ShortDescription { get; set; }
  20. public string AddressLine1 { get; set; }
  21. public string AddressLine2 { get; set; }
  22. public string AddressLine3 { get; set; }
  23. public int SuburbId { get; set; }
  24. public int CityId { get; set; }
  25. public int ProvinceId { get; set; }
  26. public virtual PropertyType PropertyType { get; set; }
  27. public virtual Province Province { get; set; }
  28. public virtual City City { get; set; }
  29. public virtual Suburb Suburb { get; set; }
  30. public ICollection<PropertyUserField> PropertyUserFields { get; set; }
  31. public ICollection<PropertyImage> PropertyImages { get; set; }
  32. [NotMapped]
  33. public List<PropertyDetailGroup> DisplayData { get; set; }
  34. #endregion
  35. }
  36. }