2015年2月11日
摘要: 今朝有幸尝芒果,发现自增长ID类型有多种,唯独没有Long/Int。一思路:1. 自建一个Collection(表,假设名为:IdentityEntity,其中字段:_id, Key, Value,其中_id你懂的,Key:Collection名,需要用Long/Int自增长主键的Collectio... 阅读全文
posted @ 2015-02-11 12:04 Jagre 阅读(7197) 评论(0) 推荐(0) 编辑
  2013年1月17日
摘要: 一直以来,我只知道WCF的服务是可以重载,但是却不知如何实现。今朝已验证,实现并不难,并自我感慨,此重载意义不大。1. 只需要更改服务契约(标注了特性ServiceContract的接口/类)里的重载方法的操作契约特性(OperationContract)。如下代码所示:1 [ServiceContract]2 public interface IMethodOverLoadTest {3 [OperationContract(Name="SumInt")]4 int Sum (int a, int b);5 6 [OperationContract(Name... 阅读全文
posted @ 2013-01-17 11:45 Jagre 阅读(395) 评论(0) 推荐(0) 编辑
  2013年1月16日
摘要: 今天想验证一下System.ServiceModel.FaultException<T>,于是想通过一个Web页面调用WCF服务来弄一下。可是了不幸的是Web层调用WCF的Client对象时报:“客户端配置部分中,找不到引用协定 的默认终结点元素……”,后来找了一下资料也算是解决了。1. 服务端的配置(可以手写,也可用“WCF服务配置编辑器”) 1 <system.serviceModel> 2 3 <!--<services configSource="MyConfig\Debug\WCF.services.config">< 阅读全文
posted @ 2013-01-16 15:17 Jagre 阅读(1257) 评论(0) 推荐(1) 编辑
  2012年8月28日
摘要: Step 1. pls install Entity Framework, then u can create a project(My project name: Jagre.Data).Step 2. Pls add the item *.edmx to the project you created. P1Double click the file *.edmx and added some Entity Models. When you finish all entity Models, u can right click blank area and select highligh. 阅读全文
posted @ 2012-08-28 19:00 Jagre 阅读(737) 评论(0) 推荐(0) 编辑
  2012年8月17日
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-08-17 16:14 Jagre 阅读(45) 评论(1) 推荐(0) 编辑