API
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Property.cs 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. public Property()
  14. {
  15. }
  16. private int? _StatusID;
  17. #region Properties
  18. [ForeignKey("PropertyType")]
  19. public int PropertyTypeId { get; set; }
  20. public string PropertyName { get; set; }
  21. public string Unit { get; set; }
  22. public decimal OperationalCosts { get; set; }
  23. public decimal Price { get; set; }
  24. public string PricePer { get; set; }
  25. public bool IsSale { get; set; }
  26. public string Description { get; set; }
  27. public string ShortDescription { get; set; }
  28. public bool ShowAddress { get; set; }
  29. public string AddressOther { get; set; }
  30. public string StreetNumber { get; set; }
  31. public string StreetName { get; set; }
  32. public string Suburb { get; set; }
  33. public string City { get; set; }
  34. public string Province { get; set; }
  35. public string Country { get; set; }
  36. public string PostalCode { get; set; }
  37. public string PropertCoords { get; set; }
  38. public string AddressURL { get; set; }
  39. public string PropertyRef { get; set; }
  40. public bool Published { get; set; }
  41. public DateTime DatePublished { get; set; }
  42. public string VirtualTour { get; set; }
  43. public bool PriceRedused { get; set; }
  44. public string Video { get; set; }
  45. [ForeignKey("Status")]
  46. public int? StatusId { get; set; }
  47. [ForeignKey("Owner")]
  48. public int? OwnerId { get; set; }
  49. [ForeignKey("Agent")]
  50. public int? AgentId { get; set; }
  51. [ForeignKey("Agency")]
  52. public int? AgencyId { get; set; }
  53. public DateTime DateAvailable { get; set; }
  54. public DateTime StatusDate { get; set; }
  55. public virtual PropertyType PropertyType { get; set; }
  56. [NotMapped]
  57. public Status Status { get; set; }
  58. public virtual Individual Owner { get; set; }
  59. public virtual Agent Agent { get; set; }
  60. public virtual Agency Agency { get; set; }
  61. public DateTime CutOffDisplayDate { get; set; }
  62. public ICollection<PropertyUserField> PropertyUserFields { get; set; }
  63. public ICollection<PropertyImage> PropertyImages { get; set; }
  64. public ICollection<BidItem> BidItems { get; set; }
  65. public ICollection<ProcessFlow.ProcessFlow> ProcessFlows { get; set; }
  66. [NotMapped]
  67. public List<PropertyDetailGroup> DisplayData { get; set; }
  68. #endregion
  69. }
  70. }