我有两个查询都可以工作,但需要将它们组合成一个工作查询
查询 1
var now = DateTime.Now;
var twoWeeksAgo = now.AddDays(-14);
var advert =
from m in db.tbl_Property
where m.Prop_Update >= twoWeeksAgo && m.Prop_Update <= now
select m;
查询 2
var Props =
from n in db.tbl_Property.
Where(c => c.Prop_AvailableSpaces > 0)
select n;
欢迎任何帮助或建议