开发者

Reusing Types between ADO.NET Data Services and WCF service in Silverlight

I have an ADO.NET Data Service and a regular WCF service. I'm using both these services in a Silverlight application. The WCF sercvice has an operation which has a parameter of the same type as an entity returned by the ADO.NET Data Service. The problem is that 开发者_JS百科silverlight generates different types for the WCF service and for the ADO.NET service so passing the result from one to the other would require extra code. I would like to reuse the types generated for the ADO.NET Data Service proxy for the WCF serice proxy as well.


Take a look at this tip from Alex James.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜