posts - 28,comments - 2,views - 85492
07 2013 档案
LINQ to Entity里面不能使用DateTime
摘要:LINQ中不能直接使用DateTime,否则会报错:‘The specified type member 'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are support’需要把DateTime定义在LINQ之外,例如: var now = DateTime.Now.Date; var query = from a in _workPeriodRepository.Ta... 阅读全文
posted @ 2013-07-13 18:24 Mr.Young 阅读(1308) 评论(0) 推荐(1) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示