我现在的 linq 查询,
return _db.Details
.FirstOrDefault(c => c.Master.Id.Value == nId &&
c.Id == c.Master.Id &&
c.Alert.Va <= c.Va &&
DateTimeNowc.ValidityTill <= (EntityFunctions.AddHours(DateTime.UtcNow,5) &&
EntityFunctions.AddMinutes(DateTime.UtcNow,30)));
错误:
DateTime? EntityFunctions.Addminutes(DateTime?timevalue, int? addvalue) (+2 overload(s))
Invokes the canonical Add Minutes function. For Information about the canonical AddMinutes function, see Date and Time canonical Functions(Entity SQL).
在这里我得到线路错误