Dynamic LINQ DateTime Comparison String Building - Linq To Entities

前端 未结 5 1378
慢半拍i
慢半拍i 2020-12-19 04:54

I\'m using the dynamic LINQ library by Scott Guthrie together with Entity Framework and C#.

I have to build my where string into a variable based on several factors

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-19 05:41

    ContactList.Where probably puts quotes around non-numeric arguments (such as a DateTime). In your second string the date isn't quoted.

提交回复
热议问题