0

Working with large DataContracts

by klh 13. marts 2008 16:47

In my current project I am working with rather large DataContracts. Ie. a class containing 10-12 other classes.

In such a complex DataContract it is very tempting to make a partial class and implement some interfaces on these contained classes, in order to decouple the business from the DC.

However this is not possible since the channels in WCF are very sensitive to this kind of structures.

So my recommendation is to keep the DataContract as simple as possible and make adpater classes instead.

Tags:

Kommentarer

Tilføj kommentar


(Viser dit Gravatar icon)  

  Country flag

biuquote
  • Kommentar
  • Eksempel
Loading



Powered by BlogEngine.NET 1.4.5.0
Original Design by Laptop Geek, Adapted by onesoft