摘要:
一直以来,我只知道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... 阅读全文
摘要:
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. 阅读全文