Tour.cs 861 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. namespace UPtur.Models;
  5. public partial class Tour
  6. {
  7. public Tour()
  8. {
  9. HotelOfTours = new HashSet<HotelOfTour>();
  10. TypeOfTours = new HashSet<TypeOfTour>();
  11. }
  12. public int Id { get; set; }
  13. public int TicketCount { get; set; }
  14. public string Name { get; set; } = null!;
  15. public string? Desription { get; set; }
  16. public byte[]? ImagePreview { get; set; }
  17. public decimal Price { get; set; }
  18. public BitArray IsActual { get; set; } = null!;
  19. public string DescriptionWithoutNull => (Desription == null) ? string.Empty : Desription;
  20. public virtual ICollection<HotelOfTour> HotelOfTours { get; set; } = new List<HotelOfTour>();
  21. public virtual ICollection<TypeOfTour> TypeOfTours { get; set; } = new List<TypeOfTour>();
  22. }