摘要: 最近写一个供其他系统调用的接口,决定使用wabapi,以前只是大概了解wabapi是什么东西,没有写过自己的api,从头开始学习. 1、开始创建一个webapi的项目,不得不说VS真的替我们省了好多事,基本需要的东西都创建好了,测试的valueAPI也可以正常调用; 2、创建完成之后开始添加编写字节 阅读全文
posted @ 2016-08-04 16:20 hello_myworld 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 1.EFcodeFirst如何使用存储过程!public string GetCoupon(int type) { using (var db=new ProbabilityContext()) { var co... 阅读全文
posted @ 2014-10-16 15:35 hello_myworld 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1.WCF不能区分重载函数,如遇到重载的函数需要在头部添加[OperationContract(Name="Sum_Int")] 名字就是你以后调用的名字,相当于给原函数重命名2.WCF使用说明: 1)新建一个WCF服务 2)实现接口 3)查看WCF标签,添加工程引用 即Factory引用 4)在W 阅读全文
posted @ 2014-10-16 15:33 hello_myworld 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 一、MVC4+WCF+EF code frist生成数据失败解决方法:启动Distributed Transaction Coordinator服务 原因暂未深究解决办法: 1. 在windows控制面版-->管理工具-->服务-->Distributed Transaction Coordinat... 阅读全文
posted @ 2014-10-16 15:31 hello_myworld 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1.System.Data.SQLite”或它的某一个依赖项。试图加载格式不正确的程序:修改IIS应用程序池的高级设置将32位设置成true 阅读全文
posted @ 2014-10-16 15:28 hello_myworld 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1.div换行:display:block;float:left;DIV 默认是换行的PS:设置不换行,后设置下一个DIV时时需要清楚该换行属性.clear{ clear:both}在html中调用div class='clear' 2.ul中li横向显示:设置ul的属性folat:left 以及l 阅读全文
posted @ 2014-10-16 15:27 hello_myworld 阅读(105) 评论(0) 推荐(0) 编辑