Tourss.cs 895 B

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