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ů.

TimeshareWeek.cs 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using UnivateProperties_API.Model.Region;
  4. using UnivateProperties_API.Model.Users;
  5. namespace UnivateProperties_API.Model.Timeshare
  6. {
  7. public class TimeshareWeek : BaseEntity
  8. {
  9. #region Properties
  10. public bool ReferedByAgent { get; set; }
  11. [ForeignKey("Agent")]
  12. public int? AgentId { get; set; }
  13. [ForeignKey("Agency")]
  14. public int? AgencyId { get; set; }
  15. [ForeignKey("Owner")]
  16. public int OwnerId { get; set; }
  17. public bool OtherResort { get; set; }
  18. public string ResortCode { get; set; }
  19. public string ResortName { get; set; }
  20. [ForeignKey("Region")]
  21. public int RegionId { get; set; }
  22. public string Season { get; set; }
  23. public string Module { get; set; }
  24. public int Bedrooms { get; set; }
  25. public int MaxSleep { get; set; }
  26. public string WeekNumber { get; set; }
  27. public double LevyAmount { get; set; }
  28. public bool CurrentYearBanked { get; set; }
  29. public string BankedWith { get; set; }
  30. public bool LeviesPaidInFull { get; set; }
  31. public bool WeekPlacedForRental { get; set; }
  32. public double OriginalPurchasePrice { get; set; }
  33. public DateTime OriginalPurchaseDate { get; set; }
  34. public DateTime ArrivalDate { get; set; }
  35. public DateTime DepartureDate { get; set; }
  36. [ForeignKey("Status")]
  37. public int StatusId { get; set; }
  38. #endregion
  39. #region Navigation
  40. public virtual Status Status { get; set; }
  41. public virtual Province Region { get; set; }
  42. public virtual User Owner { get; set; }
  43. public virtual Agent Agent { get; set; }
  44. public virtual Agency Agency { get; set; }
  45. #endregion Navigation
  46. }
  47. }