by Petr Hošek
During the Rapid RIA development using .NET presentation, we have presented our own T4 template for WCF RIA Service called T4RIA. T4RIA is a T4 template that generates domain services, metadata and localization for WCF RIA Services from ADO.NET Entity Data Model.
We have promised to release T4RIA under open-source license. Today, I would like to announce the first official release which is part of WCF RIA Contrib project. This project is a collection of tools for WCF RIA Services and therefore presents a perfect home for T4RIA.
To use it, simply download the official zip file and copy both T4RIA.tt and T4RIA.settings.t4 to the root of your WCF RIA Services web application. You might need to customize the settings in T4RIA.settings.t4 to fit your environment and conventions. Then, by running T4RIA.tt (simply save the file or use Chirpy extension), you will generate all the necessary files.
The code in generated files can then be customized to fit your needs e.g. add additional domain service operations, add additional model metadata, localize your model.
Developers wishing to help are welcomed to join the effort. Source code can be obtained on CodePlex. For T4 templates development support in Visual Studio 2010, I recommend Visual T4 editor from Clarius. To learn more about T4 as well as T4 Toolbox, its usage and advanced techniques, read Oleg Sych's blog which contains many useful information.