T4 Template Support in Client Code Gen
As part of the OData v4 client library, we plan to modify our code generation from using CodeDom to a T4 template. Best case scenario, in the same time frame we will make that T4 template publicly available and anyone can modify it to their heart’s content. Worst case scenario, we will make the T4 template public as soon as we can.
Johnathan Miles commented
This is available already as a pre-release here:
You can quite easily modify this template to do what you wish with the client generated code.
Kevin Logan commented
Mainly I'd like to add a check for if the value has changed, then don't fire the propertyChanged event. See http://stackoverflow.com/questions/7432540/can-i-change-the-t4-for-a-silverlight-wcf-data-service-servicereference.
Robert McLaws commented
I 100% agree, it should be far easier to share types than it is now. I think the default client generator should be replaced with Self-Tracking Entities... there is no need to duplicate functionality when STEs are clearly more feature-complete.