Reputation: 4892
Here is the scenario:
A pretty common set-up I would have thought. I am thinking of using DTOs between the WCF service and WPF app. There would be a mapper to map between the domain objects and the DTO on the WCF service layer. You then receive this DTO object on the client and then map this to the ViewModel used by the WPF app.
Does this look sensible?
Thanks
Upvotes: 2
Views: 798
Reputation: 2856
As it should be done in my book. You don't use domain entities in your UI layer.
Look into AutoMapper to aid with the mapping back and forth.
Upvotes: 2