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

silverlightwcfwcf-data-services

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 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.

Best Answer

Take a look at this tip from Alex James.