I'm trying to check whether a nullable field has a value or not. However, when I try the next statement, there is an exception thrown:
.Where (e=>e.EndDate > DateTime.Today | !e.EndDate.HasValue);
The produced query looks like this, where p1 is filled with 1(?):
WHERE (""."LPFA_2" = :p1)
The exception thrown complains about an empty identifier, which is correct.
I must be overlooking something very obvious, but what?