Sitecore Code Generation based on T4 and extending the sitecore base template fields with class information for mapping the c# code to correct types.
AutoGenerated.tt is used by Visual Studio to generate the .cs file with all the template classes.
T4XmlProvider is the service that generates the Xml that is required by the AutoGenerated.tt to function.
Fields are mapped to types with information in the configuration and information stored directly on the Sitecore template field.
This model was developed back in 2010 and now shared with everyone, we no longer use the model but it can serve as an inspiration to others.
No comments: