开发者

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

开发者 https://www.devze.com 2022-12-12 09:38 出处:网络
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 ent

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

精彩评论

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