Linq tostring() issue
来源:互联网 发布:下载枪林弹雨刷枪软件 编辑:程序博客网 时间:2024/05/29 17:55
wrong :
var perDayOrderList = objectList.Where(c => (c.PRINT_STATUS == hasPrint) && (c.ORDER_TIME.Year.ToString() + "-" + c.ORDER_TIME.Month.ToString() + "-" + c.ORDER_TIME.Day.ToString()) == (item.Key.Year.ToString() + "-" + item.Key.Month.ToString() + "-" + item.Key.Day.ToString()));
right:
ar perDayOrderList = objectList.Where(c => (c.PRINT_STATUS == hasPrint) && (c.ORDER_TIME.Year == item.Key.Year) && (c.ORDER_TIME.Month == item.Key.Month) && (c.ORDER_TIME.Day == item.Key.Day));// .ToString() + "-" + c.ORDER_TIME.Month.ToString() + "-" + c.ORDER_TIME.Day.ToString()) == (item.Key.Year.ToString() + "-" + item.Key.Month.ToString() + "-" + item.Key.Day.ToString()));
0 0
- Linq tostring() issue
- issue
- issue
- issue
- 如何在 LINQ 中使用 Object.ToString() 进行查询
- Linq中使用ToString或Split等方法的方法
- LINQ to Entities does not recognize the method ToString()
- 关于linq to entity中toString()的使用
- LINQ to Entities 不识别方法"System.String ToString()"
- Linq中字段数据类型转换问题(Linq to entity,LINQ to Entities 不识别方法"System.String ToString()"问题解决)
- Linq中字段数据类型转换问题(Linq to entity,LINQ to Entities 不识别方法"System.String ToString()"问题解决)
- Linq中字段数据类型转换 Linq to entity,LINQ to Entities 不识别方法"System.String ToString()
- ToString()
- ToString
- ToString()
- toString
- tostring
- toString
- 2015上海●全球零售自有品牌产品亚洲展
- 相位匹配实验
- Android shape样式
- OpenSessionInViewFilter
- 国际专家齐聚申城,助力中国制造2025
- Linq tostring() issue
- Android上构建基于httpclient的网络连接池
- C# mongodb 查询
- 使用Jsch执行Shell脚本
- 半同步复制模式
- 使用Pushlet来实现服务器端向客户端推送信息
- Android init进程——解析配置文件
- 2014百度笔试题
- shell编程之变量