I want to refactor existing windows application by introducing WCF layer in between UI and BAL.
It is used LLBL Code Gen Pro as ORM tool and it uses SelfServing method to communicate with a database. I want to introduce WCF layer but cant change LLBL auto generated codes to expose entity classes. I am thinking of using some DTO classes to expose entity classes. In this case, I might use some Entity to DTO and DTO to entity converters or mappers which will be very painful task for me.
Can someone suggest a better approach rather than this? I cant use the method what is suggested by LLBL since I am using selfserving method.