
C#
C#基础
asacloud
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Date日期和毫秒的相互转换,以及获取日期之间的周末天数(8/2)
Date转timestamps:1、Date.parse(new Date());2、new Date().getTime()TimeStamps转Date;new Date(timestamps);通过毫秒数循环加一天的毫秒数后转换为Date,同时通过getDay();获取Date是周几0-6分别表示周日到周六;while(startTime == endTime)...原创 2018-08-02 19:06:16 · 293 阅读 · 0 评论 -
C# Linq to Entity 的Dbfunctions进行DateTime类型的判断比较
在vs中用linq语法直接调用DateTime类型的方法以及其间的基本运算时,会报错: DbArithmeticExpression arguments must have a numeric common type 解决方法: DbFunctions类: 提供在 DbContext 或 ObjectContext LINQ to Entities 查询中使用的公开 EDM 规范...原创 2018-09-13 17:14:31 · 4270 阅读 · 0 评论 -
WCF服务错误:the server responded with a status of 500(System.ServiceModel.ServiceActivationException)
7/16 实习刚开始接触公司项目,创建WCF服务svc文件时出现Failed to load resource: the server responded with a status of 500 (System.ServiceModel.ServiceActivationException)约定“Service”中的操作“Opreation”为 WebGetAttribute/WebIn...原创 2018-07-27 16:42:27 · 3022 阅读 · 0 评论