0

We are in the process of writing a WCF service using the same pattern as in WSSF. It has its service implementation which makes use of Business logic project to get the resources or save the resources using Data Access Repository. This is where the problem comes since we have to write a translator for translating Data Contract to Business Entity and Vice Versa. This translation is becoming tedious.

I am looking for a way (maybe using Reflection) to write one function to Translate Datacontract to Business Entity and vice versa.

Any suggestion is most welcome.

Thanks,

Raja

Raja
  • 3,608
  • 3
  • 28
  • 39

1 Answers1

1

Please have a look at AutoMapper

Chandermani
  • 42,589
  • 12
  • 85
  • 88
  • 1
    We're using AutoMapper on my current project with great success. It's the industry standard way to do what it sounds like you're looking to do. – Tad Donaghe Nov 03 '11 at 15:49