API
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Property.cs 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using UnivateProperties_API.Containers.Property;
  4. using UnivateProperties_API.Model.ProcessFlow;
  5. using UnivateProperties_API.Model.Region;
  6. using UnivateProperties_API.Model.Timeshare;
  7. using UnivateProperties_API.Model.Users;
  8. namespace UnivateProperties_API.Model.Properties
  9. {
  10. public class Property : BaseEntity
  11. {
  12. #region Properties
  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. [ForeignKey("Status")]
  31. public int? StatusId { get; set; }
  32. [ForeignKey("Owner")]
  33. public int? OwnerId { get; set; }
  34. [ForeignKey("Agent")]
  35. public int? AgentId { get; set; }
  36. [ForeignKey("Agency")]
  37. public int? AgencyId { get; set; }
  38. public virtual PropertyType PropertyType { get; set; }
  39. public virtual Province Province { get; set; }
  40. public virtual City City { get; set; }
  41. public virtual Suburb Suburb { get; set; }
  42. public virtual Status Status { get; set; }
  43. public virtual Individual Owner { get; set; }
  44. public virtual Agent Agent { get; set; }
  45. public virtual Agency Agency { get; set; }
  46. public ICollection<PropertyUserField> PropertyUserFields { get; set; }
  47. public ICollection<PropertyImage> PropertyImages { get; set; }
  48. public ICollection<BidItem> BidItems { get; set; }
  49. public ICollection<ProcessFlow.ProcessFlow> ProcessFlows { get; set; }
  50. [NotMapped]
  51. public List<PropertyDetailGroup> DisplayData { get; set; }
  52. #endregion
  53. }
  54. }