HegreHotel/Models/Reservation.cs

30 lines
546 B
C#
Raw Normal View History

2025-01-16 17:50:56 +01:00
namespace HegreHotel.Models;
using SQLite;
public class Reservation
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public DateTime DateDebut { get; set; }
public DateTime DateFin { get; set; }
public string? Demandes { get; set; }
// Navigation properties (ignorées dans SQLite)
[Indexed]
public int ClientId { get; set; }
[Indexed]
public int ChambreId { get; set; }
[Ignore]
public Client Client { get; set; }
[Ignore]
public Chambre Chambre { get; set; }
}