Hotel.cs 875 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. namespace TourAgent.Models
  4. {
  5. public partial class Hotel
  6. {
  7. public Hotel()
  8. {
  9. HotelComments = new HashSet<HotelComment>();
  10. HotelImages = new HashSet<HotelImage>();
  11. HotelOfTours = new HashSet<HotelOfTour>();
  12. }
  13. public int Id { get; set; }
  14. public string Name { get; set; } = null!;
  15. public int CountOfStars { get; set; }
  16. public string CountryCode { get; set; } = null!;
  17. public string? Description { get; set; }
  18. public virtual Country CountryCodeNavigation { get; set; } = null!;
  19. public virtual ICollection<HotelComment> HotelComments { get; set; }
  20. public virtual ICollection<HotelImage> HotelImages { get; set; }
  21. public virtual ICollection<HotelOfTour> HotelOfTours { get; set; }
  22. }
  23. }