将sql查询更改为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;

相关内容

  • 没有找到相关文章

最新更新