会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Eric Sun
子之燕居,申申如也,夭夭如也。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
18
下一页
2015年11月14日
The specified type member 'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties
摘要: 出现这个错误提示可以用DbFunctions.TruncateTime 将Linq中entity的DateTime转化一下再使用,如下所示:var anyCalls = _db.CallLogs.Where(x => DbFunctions.TruncateTime(x.DateTime) == c...
阅读全文
posted @ 2015-11-14 21:39 Eric Sun
阅读(927)
评论(0)
推荐(0)
2015年8月10日
在C#中实现Json的序列化与反序列化
摘要: 第一种方式利用JavaScriptSerializer 【对应的Assembly 为 System.Web.Extensions.dll】 进行处理: public static class KasJsonSerializer { public static string ...
阅读全文
posted @ 2015-08-10 13:54 Eric Sun
阅读(553)
评论(0)
推荐(0)
2015年7月14日
C# 利用 DbUp 通过多个SQL Script文件完成对数据库的更新
摘要: 详细流程请参考(本人测试过,很好用):http://dbup.github.io/配置截图:程序如下:static int Main(string[] args){ var connectionString = args.FirstOrDefault() ?? "...
阅读全文
posted @ 2015-07-14 16:56 Eric Sun
阅读(1131)
评论(0)
推荐(0)
2015年1月30日
在IIS8.5的环境下配置WCF的Restful Service
摘要: 今天在客户的环境中(Windows Server 2012 R2 + IIS 8.5)搭建Call WCF Restful Service的功能,发现了几个环境配置的问题,记录如下:1):此环境先安装了.Net Framework,后安装的IIS,导致IIS site上无法运行.Net的程序,因此我...
阅读全文
posted @ 2015-01-30 10:40 Eric Sun
阅读(2002)
评论(0)
推荐(0)
2015年1月26日
通过配置web.config使WCF向外提供HTTPS的Restful Service
摘要: 如何通过WCF向外提供Restful的Service请看如下链接http://www.cnblogs.com/mingmingruyuedlut/p/4223116.html那么如何通过对web.config的配置,使原有的Service即符合HTTP又符合HTTPS呢?请看如下具体步骤:1):将上...
阅读全文
posted @ 2015-01-26 14:16 Eric Sun
阅读(10147)
评论(0)
推荐(1)
利用WCF创建简单的RESTFul Service
摘要: 1):用VS2013创建一个WCF的工程,如下图所示:2):我们来看一下默认状态下的config文件内容,这里的内容我们会再后续的步骤中进行修改 ...
阅读全文
posted @ 2015-01-26 13:56 Eric Sun
阅读(13138)
评论(4)
推荐(1)
在ionic这个框架下(Angular JS),对URL进行重写,过滤掉URL中的#号
摘要: 此时URL的改变已经完全不受后台代码控制了,因此我们要在前端的ionic这个框架和IIS中进行修改调控。其实IIS只是host了整个站点,具体的URL跳转都是由前端来控制的。1):那么前端要加上一行代码:$locationProvider.html5Mode(true);2):IIS对应的web.c...
阅读全文
posted @ 2015-01-26 09:27 Eric Sun
阅读(5040)
评论(0)
推荐(0)
2015年1月20日
在Jenkins中获取GitHub对应Repository的Resource Code
摘要: 1):Install Jenkins请看如下链接:https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins2):Install Git and GitHub请看如下链接:https://msysgit.github.io/ an...
阅读全文
posted @ 2015-01-20 14:51 Eric Sun
阅读(8805)
评论(0)
推荐(0)
2015年1月12日
通过VS创建简单的WCF服务
摘要: http://www.cnblogs.com/artech/archive/2007/09/15/893838.htmlhttp://www.topwcftutorials.net/2013/09/simple-steps-for-restful-service.htmlhttp://www.cod...
阅读全文
posted @ 2015-01-12 15:41 Eric Sun
阅读(749)
评论(0)
推荐(0)
2014年11月14日
在Salesforce中向外公布Service去创建Lead,并且用Asp.Net去调用此Service
摘要: 1):在Salesforce中如何配置,向外公布此Service,请看如下链接: http://www.shellblack.com/marketing/web-to-lead/2):如何在Asp.Net中调用此Service去创建对应的Lead,请看如下代码: try ...
阅读全文
posted @ 2014-11-14 15:10 Eric Sun
阅读(803)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
18
下一页
公告