Stories recently tagged with 'CodeGeneration'

Creating complex code generators(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 7 months ago

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. read more...

add a comment |category: |Views: 45

tags: another

DSL Tools, Software Factories and Oslo - Model-driven .NET(startbigthinksmall.wordpress.com)

submitted by lcorneliussenlcorneliussen(490) 3 years, 8 months ago

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". read more...

add a comment |category: |Views: 46

tags: another

Creating reusable code generation templates(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 8 months ago

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. read more...

add a comment |category: |Views: 54

tags: another

Debugging Code Generation Files(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 8 months ago

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. read more...

add a comment |category: |Views: 5

tags: another

Troubleshooting Code Generation Errors(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 8 months ago

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. read more...

add a comment |category: |Views: 4

tags: another

Creating your first code generator(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 8 months ago

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. read more...

add a comment |category: |Views: 20

tags: another

Extending T4: <#@ xsd #> directive(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 9 months ago

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. read more...

add a comment |category: |Views: 81

tags: another

T4 template for generating SQL view from C# enumeration(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 10 months ago

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. read more...

add a comment |category: |Views: 132

tags: another

Have fun with MDA: modeling business logic(mdafun.blogspot.com)

submitted by reinbergerreinberger(75) 3 years, 10 months ago

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 also transformed into C# code that matches the business logic defined in the model - and of course - you could also transform it into Java J2EE code that behaves identically. read more...

add a comment |category: |Views: 42

tags: another

Building a web-based database application within 8 hours, Part Two(mdafun.blogspot.com)

submitted by reinbergerreinberger(75) 3 years, 10 months ago

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 modeling all other logics and user interface features, such as transactional business logic and AJAXified data views, filters and service forms. read more...

add a comment |category: |Views: 49

tags: another

Building a web-based database application within 8 hours(mdafun.blogspot.com)

submitted by reinbergerreinberger(75) 3 years, 10 months ago

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 application. read more...

add a comment |category: |Views: 214

tags: another

Test runner for T4 unit tests(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 11 months ago

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. read more...

add a comment |category: |Views: 9

tags: another

Unique Index Schema Information in SQL Server (javicrespotech.blogspot.com)

submitted by fintz69fintz69(700) 4 years ago

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. read more...

add a comment |category: |Views: 33

tags: another

T4 Architecture(olegsych.com)

submitted by olegsycholegsych(335) 4 years ago

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 templates more powerful. read more...

add a comment |category: |Views: 24

tags: another

T4 Template Design(olegsych.com)

submitted by olegsycholegsych(335) 4 years, 1 month ago

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. read more...

add a comment |category: |Views: 32

tags: another

How to generate multiple outputs from single T4 template(olegsych.com)

submitted by olegsycholegsych(335) 4 years, 1 month ago

For some code generation tasks, like generating SELECT stored procedures based on indexes of a given database table, number of output artifacts may not be known upfront. Because T4 was designed to generate a single output file from one template file, developers are forced to generate multiple code artifacts in the same source file. This conflicts with the widely used practice of using one source file per code artifact. This article demonstrates how to work around this limitation of T4, generate multiple files from a single template and automatically add them to a Visual Studio project. read more...

add a comment |category: |Views: 269

tags: another