Great question.
Yes, it is definitely possible.
I just put together a Tip that shows how to disable the default code generator and instead refer to an existing type and show how to say DataServiceCpntext, how to make a mapping between the expected type on the wire and the type used on the client.
NOTE. Although the types may be the same inside the DataService and on the client, it is still possible that the data service is configured to display server types in a different namespace, so this mapping may be necessary.
In any case, I'm sure Tip 52 will help you with your scenario.
Alex
Alex james
source share