API
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Property.cs 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. public string CreatedBy { get; set; }
  11. [ForeignKey("PropertyType")]
  12. public int PropertyTypeId { get; set; }
  13. public string PropertyName { get; set; }
  14. public string Unit { get; set; }
  15. public decimal OperationalCosts { get; set; }
  16. public decimal Price { get; set; }
  17. public string PricePer { get; set; }
  18. public bool IsSale { get; set; }
  19. public string Description { get; set; }
  20. public string ShortDescription { get; set; }
  21. public string AddressLine1 { get; set; }
  22. public string AddressLine2 { get; set; }
  23. public string AddressLine3 { get; set; }
  24. public int SuburbId { get; set; }
  25. public int CityId { get; set; }
  26. public int ProvinceId { get; set; }
  27. public bool Published { get; set; }
  28. public virtual PropertyType PropertyType { get; set; }
  29. public virtual Province Province { get; set; }
  30. public virtual City City { get; set; }
  31. public virtual Suburb Suburb { get; set; }
  32. public ICollection<PropertyUserField> PropertyUserFields { get; set; }
  33. public ICollection<PropertyImage> PropertyImages { get; set; }
  34. [NotMapped]
  35. public List<PropertyDetailGroup> DisplayData { get; set; }
  36. #endregion
  37. }
  38. }