我正在尝试根据表中的值做出决定。我很难得到一个答案。这就是我所尝试的。
var open = from a in db.checkinhours
where a.location == "Canyon" && a.day == day && a.opentime <= time && a.closetime >= time
select a;
if (open == null)
{
return RedirectToAction("Closed");
}
我只需要知道该行是否基于给定的一组标准存在,但我无法弄清楚。
提前致谢