我正在尝试将分钟添加到我的日期列,然后使用where子句来比较日期。
DateTimeOffset offset;
var dto = DateTimeOffset.TryParse(searchTerm, out offset);
var offSettMintutes = (int)offset.Offset.TotalMinutes;
if(!dto)
{
offSettMintutes = 0;
}
var filteredQuery = queryForRequests.Where(item => DbFunctions.TruncateTime(DbFunctions.AddMinutes(item.SUBMIT_DATE, offSettMintutes)) == searchTermDate);
抛出错误说
{" ORA-01867:间隔无效"}