views:

23

answers:

2

Is there a better way in WCF werein we could avoid the translation betwee business entities and service entities, just to avoid the whole translator logic for complex entities.Any insight on this topic is welcome

+1  A: 

Not REALLY - you want those decoupled because your business entities will be a "good entity model" while the service objects will be optimized for the use in the service (which may mean other property composition and inheritance decisions). An object/object mapper would help, but those are few and far between.

TomTom
+2  A: 

No, there's no "magic bullet" - but with tools like AutoMapper, you can lessen the burden and the pain of converting between business entities and data-transfer objects.

Check it out! Excellent tool, helps you tremendously, saves lots of silly left-right assignment code.....

marc_s