Using Contract By Design over the wire and a possible solution


I’ve been plagued with an issue that I have yet to find a solution for.

This is really more for my benefit so I can research this later, but basically when I create classes I tend to decouple them by using interfaces, especially between layers.

The problem is when you use a service layer, such as WCF, that the class that is generated on the client side doesn’t carry the implementations that the server side class has.

Then I found this article which might be my saving grace.  It lefts you actually reference the same class on the client side.  This might be solution I’m looking for.

Once I get a chance to test this out I’ll post the results with some code.

Tags:


1 Comment

  1. A great and helpful article shared, much appreciated. I have a couple of doubts – can you look into here : http://stackoverflow.com/questions/4337112/implementation-of-xml-templates-in-asp-net-mvc-and-asp-net-applications