将 sql 查询更改为 LINQ

Change sql query to LINQ

我如何转换此 sql 查询:

Select ID, first_name, last_name, phone_number, room_type, room_floor, room_number, break_fast, lunch, dinner, cleaning, towel, s_surprise, supply_status, food_bill
from reservation
where check_in = '" + "True" + "' AND supply_status= '" + "False" + "'"

进入 LINQ

您可以尝试类似的操作:

var rows = from r in reservation
           where r.check_in == "True" && r.supply_status == "False"
           select r;