Hotel.cs 886 B

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