Author Archives for Oleg Sych
T4 Toolbox
You may have noticed that in my last couple of articles about T4, the download links point to a CodePlex project called T4 Toolbox. This post describes what this project is about.
August meeting of Tampa Bay IASA chapter
Web Service Software Factory Modeling Edition
The Web Service Software Factory (WSSF) Modeling Edition focuses on building the server side of a web services infrastructure, using either ASMX or WCF services. The new release uses three Domain Specific Languages (DSLs) to model services: service contract, data contract and host models. Through use of these DSLs, WSSF […]
Extending T4: <#@ xsd #> directive
This article describes a custom T4 directive processor for converting XML schema definitions into .NET classes, which allows using strongly-typed code to extract information from various XML files. In particular, this simplifies creating custom T4 code generation templates for LINQ to SQL .dbml files and ADO.NET Entity Framework .edmx files. The article includes links to ready to use xsd directive processor and sample source code.
Simplifying WCF: Using Exceptions as Faults
This article describes an overview of error handling in WCF, discusses its advantages and drawbacks and shows how to extend WCF to marshal .NET exceptions as SOAP faults. Ready-to-use source code and examples are available for download.
July Meeting of Tampa Bay IASA Chapter
“Fix the Architecture” - Open Discussion
We have a great group of members with a variety of experience, so bring your architecture problems and leverage those experiences and creativity to help solve them. This is an open discussion format and depending on how many people we have and how many problems we may split up into […]
T4: Extending the Generated Template Class by Mike Pagel
Mike Pagel recently posted an interesting article about T4 on CodeProject called “T4: Extending the Generated Template Class“. In this article, Mike describes several approaches for implementing code generation logic - helper methods defined in class feature blocks, custom directive processors and a custom TextTransformation base class referenced using the inherits attribute of the template […]
T4 template for generating SQL view from C# enumeration
Database tables often contain columns that store codes, or values with special meaning. In application code, these special values can be encapsulated as enumerations. This article demonstrates how to use T4 code generation templates and Visual Studio CodeModel API to generate SQL views that encapsulate the special values for use in SQL code.
Test runner for T4 unit tests
This post shows how to create unit tests that run during T4 template transformation. This approach allows creating automated tests for template code that relies on specific capabilities of a T4 host, such as access to Visual Studio extensibility APIs. The post includes a ready to use test runner for T4 unit tests.


