tangible T4 Editor Blog

News, Tip and Tricks from the tangible T4 Editor team.

Blog Series: Model Driven Development with T4 templates – Part 3

Part three of this blog series creates data objects based on the domain specific model we build in the previous part. Instead of writing all class code by hand we’re going to implement a reusable T4 template that transforms the model diagram into C# data classes for EntityFramework CodeFirst.

Following to this blog post we’re going to create data persistence layer based on this data classes and a basic user interface using another T4 template.

 

image

 


Blog Series: Model Driven Development with T4 templates – Part 2

The second part of this blog series introduces the tangible Modeling Tools, a Visual Studio integrated designer for several UML-style diagram types, that can be used to create domain specific models. Later in this series we’re going to use a Persistence Model diagram (.tasl) to generate data classes and a basic UI from it using T4 templates.

 

image


Blog Series: Model Driven Development with T4 templates

This blog series deals with the idea of Model Driven Development. In five parts we’re going to cover what Model Driven Development is and what tangible engineering offers to support this kind of software development process. We also walk through a scenario showing how to use our products.

 

In order to reconstruct all steps presented in this blog series, you need the following:

This first part of the blog series talks about the principles behind the Model Driven Development and tangibles contribution to implement this development process. Finally we give an overview how this blog series continues.


Walkthrough: Creating a State Machine using T4 and a State Diagram

Introduction

In this sample we will walk through a scenario that includes the usage of state diagrams and T4 templates. We will create a sample application that implements an alarm clock based on a state machine. The code for this machine will be generated by a T4 template based on the previously designed state diagram.

This article consists of the following chapters:

You can download the full sample code inside a Visual Studio Solution here: T4-StateMachineSample.zip (60K)


Transforming T4 Templates On Build

T4 templates provide essential parts of your source code. So how can you be sure that the generated code is always up to date? Can you guarantee that all templates have been transformed before debugging or even deploying your application?

 

Use the OnBuild Feature of tangible T4 Editor

In the Pro Version our T4 Editor provides the functionality of transforming selected templates when building a Visual Studio Solution. This means: every time you hit F5, debug or deploy your project all selected templates are transformed and the output data is always up to date!

 

To mark a template in your Solution for transformation on build, set the “Transform on Build” Property in the Property Grid to “True”.

image


Twitter Updates

Authorization on the site

For an authorized user opens up new possibilities

Login

Password