Hello all,
With LINQ in a C# service I am trying to query a AX table and retrieve only the data that was modified after a specific date and time. The compiler is giving a compile error: "Operator '>' cannot be applied to operands of type 'System.ValueType' and 'System.DateTime'.
Here is my code. The cutOffDateTime variable is a DateTime type.
I have tried converting CreatedDateTime to DateTime but that just removes the VS compiler error and then I get the following error during runtime: The type 'System.DateTime' for the query operator is not Queryable!
The CreatedDateTime property is enabled on the table in question.
Help will be much appreciated.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156