English 中文(简体)
WCF 服务参考资料不重复现有组件(VS 2010 Beta 2)
原标题:WCF Service Reference does not reuse types in existing assemblies (VS 2010 Beta 2)

I m 寻找最佳办法,在服务于服务对象和客户之间分享类型(实际班级,而不是轴心)。 为此,我在一个单独的组合中界定了服务对象和客户的班级。 我在为客户提供服务参考时选择了“所有参考文件中的重新使用类型”,但所有类别都用近似值生成参考资料。

这完全与

imp或t the complete service contract in code f或m

创建自己的客户基础课程。 这确实非常容易

假设这是最佳办法,我会赞赏一种涵盖如何做到这一点的良好联系。 联系中概述的方法是否最佳?

最佳回答

我也采取了两点行动。 不能确定一个或两个问题都得到解决:

  1. Added a [DataContract(Namespace="My.Shared.Assemblys.Namespace")] to one of the classes in the shared assembly.
  2. Restarted VS 2010 Beta 2
问题回答

如果存在同样的问题,但我却想为客户建立有数据链接的组装,从而产生自己的合同。 一旦我重建了大会,它就重新使用。

我与VS2010 SP1有关的问题是试图使用从<代码>Dictionary<T,U>到<编码>的一组。 Seems VS得回头再用...... 我也尝试了上面的爱立体建议,但却没有工作。





相关问题
WCF DataMember Serializing questions

Ok, so I was part way through the long winded process of creating DTOs for sending my model over the wire and I don t feel like I m going down the right route. My issue is that most of the entities ...

Access WCF service on same server

I have a .NET website with a WCF service. How do I access the current operations context of my service? One possible work around is to just make a call to the service within the app...but that seems ...

WCF binding error

So I got into work early today and got the latest from source control. When I try to launch our ASP.NET application, I get this exception: "The binding at system.serviceModel/bindings/wsHttpBinding ...

The service operation requires a transaction to be flowed

I am facing strange issue with our WCF service. The same code was working fine until recently we added more OperationContracts(Web Methods). We have common 3 tier architecture. DAL (WCF) BLL Web ...

热门标签