API
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Property.cs 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using UnivateProperties_API.Containers.Property;
  5. using UnivateProperties_API.Model.ProcessFlow;
  6. using UnivateProperties_API.Model.Region;
  7. using UnivateProperties_API.Model.Timeshare;
  8. using UnivateProperties_API.Model.Users;
  9. namespace UnivateProperties_API.Model.Properties
  10. {
  11. public class Property : BaseEntity
  12. {
  13. private int? _StatusID;
  14. #region Properties
  15. [ForeignKey("PropertyType")]
  16. public int PropertyTypeId { get; set; }
  17. public string PropertyName { get; set; }
  18. public string Unit { get; set; }
  19. public decimal OperationalCosts { get; set; }
  20. public decimal Price { get; set; }
  21. public string PricePer { get; set; }
  22. public bool IsSale { get; set; }
  23. public string Description { get; set; }
  24. public string ShortDescription { get; set; }
  25. public bool ShowAddress { get; set; }
  26. public string AddressOther { get; set; }
  27. public string StreetNumber { get; set; }
  28. public string StreetName { get; set; }
  29. public string Suburb { get; set; }
  30. public string City { get; set; }
  31. public string Province { get; set; }
  32. public string Country { get; set; }
  33. public string PostalCode { get; set; }
  34. public string PropertCoords { get; set; }
  35. public string AddressURL { get; set; }
  36. public string PropertyRef { get; set; }
  37. public bool Published { get; set; }
  38. public DateTime DatePublished { get; set; }
  39. public string VirtualTour { get; set; }
  40. public bool PriceRedused { get; set; }
  41. public string Video { get; set; }
  42. [ForeignKey("Status")]
  43. public int? StatusId { get; set; }
  44. [ForeignKey("Owner")]
  45. public int? OwnerId { get; set; }
  46. [ForeignKey("Agent")]
  47. public int? AgentId { get; set; }
  48. [ForeignKey("Agency")]
  49. public int? AgencyId { get; set; }
  50. public DateTime DateAvailable { get; set; }
  51. public DateTime StatusDate { get; set; }
  52. public virtual PropertyType PropertyType { get; set; }
  53. [NotMapped]
  54. public Status Status { get; set; }
  55. public virtual Individual Owner { get; set; }
  56. public virtual Agent Agent { get; set; }
  57. public virtual Agency Agency { get; set; }
  58. public DateTime CutOffDisplayDate { get; set; }
  59. public ICollection<PropertyUserField> PropertyUserFields { get; set; }
  60. public ICollection<PropertyImage> PropertyImages { get; set; }
  61. public ICollection<BidItem> BidItems { get; set; }
  62. public ICollection<ProcessFlow.ProcessFlow> ProcessFlows { get; set; }
  63. [NotMapped]
  64. public List<PropertyDetailGroup> DisplayData { get; set; }
  65. #endregion
  66. }
  67. }