My project is hotel reservation. And so I went to the place where the problems started) I have a Бронирование
table and there is a Комната
table. They are КомнатаБронь
through the КомнатаБронь
table, which takes Id
armor and Id
rooms.
So I need to display rooms that are not yet booked by this date. But I do not know how to link through an intermediate table.
Here is something tried datepicker
navayat - incoming date, as well as the number of nights transmitted, it also needs to somehow insert
from p in context.Room join c in context.Booking on p.Id equals c.Id where (c.DateOfEntry between c.DateOdOut) != datepicker