By tag: CodeGeneration
0
kicks
Creating complex code generators
This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
0
kicks
DSL Tools, Software Factories and Oslo - Model-driven .NET
Suddenly, at least it seams so, Microsoft is excited about modeling. At least they joined OMG! Here the summarized current state as well as a lot of links to articles, people and webcasts arround dsl, software factories and codename "Oslo".
0
kicks
Creating reusable code generation templates
This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
0
kicks
Debugging Code Generation Files
This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
0
kicks
Troubleshooting Code Generation Errors
This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
0
kicks
Creating your first code generator
This is the first post in a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators.
0
kicks
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 file...
0
kicks
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 encaps...
0
kicks
Have fun with MDA: modeling business logic
This is part three of my five-part tutorial that shows how to implement a web-based database application with a powerful MDA-Tool called OlivaNova Modeler. In this part, I'll explain how to implement nearly any business logic within the software model. When generating the code, the business logic is...
0
kicks
Building a web-based database application within 8 hours, Part Two
This is part two of my five-part tutorial about implementing a web-based database application with the OlivaNova Modeler. In this part, we're going to discuss a rather simple task, the creation of classes, attributes, associations and inheritance. Modeling the class diagram is the foundation of mode...
0
kicks
Building a web-based database application within 8 hours
This article shows you how to implement a rock-solid, multi-tier, scalable, AJAXified C# ASP.NET client/server-application with ease. The tutorial consists of five parts that show how the application has been modeled. Today, I'd like to start with a short introduction and the specification of the ap...
0
kicks
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...
0
kicks
Unique Index Schema Information in SQL Server
Javi shows how unique index information can be retrieved from SQL Server catalog in order to determine the relationship type (One-To-One or One-To-Many) in a code generation scenario.
0
kicks
T4 Architecture
This article provides an in-depth look at the architecture of T4 template transformation process, discusses some constraints that limit template design, describes techniques that can be used to work around these limitations and points out some (sometimes undocumented) mechanisms for making your T4 t...
0
kicks
T4 Template Design
This article discusses design challenges developers face as complexity of their T4 templates increases; defines qualities of a reusable T4 templates; discusses techniques that can be used to achieve these qualities and compares their pros and cons.