Suppose an SQL table 'employees' (containing a nullable datetime field called 'endDate')
static LINQ:
dim result = db.employees.where(function(c) not(c.endDate.hasValue))
Works perfectly!
dynamic LINQ:
dim result = db.employees.where("it.endDate == null")
Throws an error
Operator '=' incompatible with operand types 'DateTime?' and 'Boolean'
Now I am completely blocked in my project because of this issue. Any of you already faced this problem ?
Thanks a lot in advance - zSkk