var query = _context.POS_ItemPriceListMaster.Where(c => c.FromDate >= FromDate && c.ToDate <= FromDate).Select(t=> t.ItemPriceListMasterID);
var query2 = from c in _context.POS_ItemPriceList
where query.Contains(c.ItemPriceListMasterID)
select c;
我想这样做,但查询中没有结果,尽管有来自日期的数据在数据库字段中是日期时间