LINQ TO SQL, Dynamic query with DATE type fields
Posted
by acanthus
on Stack Overflow
See other posts from Stack Overflow
or by acanthus
Published on 2010-05-12T10:49:39Z
Indexed on
2010/05/12
10:54 UTC
Read the original article
Hit count: 179
LINQ
|linq-to-entities
Hello,
I'm building a query with the LINQ dynamic library so I don't know how many potential parameters will I have and I get an error when trying to query DATE type fields:
Operator '>=' incompatible with operand types 'DateTime' and 'String'
When I step through the debugger in the Dynamic.cs it shows that the value is of type string and the field is of type date so the problem is obvious but I have no idea how to approach it.
Any ideas?
BR
© Stack Overflow or respective owner