Click here to Skip to main content

Code Generation articles

This section contains articles on automated Code Generation. Please be aware that we do not accept articles on commericial third party tools.

Great Reads

by Nicolas Dorier
Stop wasting time on a stupid typo in binding paths.
by Nicolas Dorier
Enhance Visual Studio and your build process in just two clicks. This tool does its best to be out of your way, while improving your development experience seemlessly.
by Olivier Giulieri
A generic Web User Interface for CRUD applications generating all screens at run-time based on external metadata. It comes with sample applications for address book, memo pad, to do list, restaurants list, wine cellar, and database structure documentation that are easily customizable.
by Nicolas Dorier
Access xaml resources in a strongly typed way

Latest Articles

by The Proactive Programmer
I recently listened to a great podcast – Lessons from Code Reviews with Shawn Wildermuth on .NET rocks. My favourite quote from the show was by Shawn: “No matter how good you are, your code will look bad to you tomorrow.” This was just a passing comment but it really got my attenti
by saramgsilva
An example about NavigationService in share code scenarios, that will be registered in one IOC container and injected by the view model’s constructor.
by Nipun D. De Silva
This is a code snippet for converting NSDate to NSString with NSDateFormatter
by Lothar Behrens
How code generation can make the distributed architecture an easy task

Discussions

by kenitoskato on article "Project Template in Visual Studio 2012"
by satishdeevi on Article "Using T4 Templates to generate custom...
by satishdeevi on Article "Using T4 Templates to generate custom...
by William E. Kempf on technical blog "Sharing Code: Adding...
by Shafiqur Rahman, Banladesh on Article "Create Business logic Layer, Data...

All Articles

Sort by Title

Sponsored Articles 

4 Feb 2013  
Pablo Fernandez Duran
This article will show you how to generate a JSON base web service layer from an existing database using CodeFluent Entities. We will also generate a web client back office following an “Import wizard”.
Sort by Title

General 

30 May 2008  
Ricky Wang
This article concisely introduces StringTemplate with a practical .NET code generation example. The scenario includes common issues when it comes to code generation such as conditionally generating codes, loop, and token replacement.
20 Oct 2013  
Bill_Hallahan
Generate C++ class header and implementation files automatically
10 Dec 2013  
Rahim Lotfi
Customized Three-tier (layer) Architecture for Application and Web Design
15 Aug 2013  
Gurdeep Singh Toor
A Complete Guide to develop aplication using MyGeneration code geenration framework. We will develop a Meeting Room Booking web application in this Article.
9 Oct 2009  
eabidi77
A cool utility to convert XML schemas to classes.
7 Dec 2008  
Dmitri Nеstеruk
Describes a small VS add-in for making decorators from existing code.
14 Dec 2008  
Dmitri Nеstеruk
A small VS add-in to implement a Visitor pattern.
5 Aug 2010  
Sebastien Termote
Add-in Visual Studio 2008 for automatically generating properties (Getter and Setter)
15 Nov 2011  
saharkiz
Using a table name as the querystring to generate admin views
4 Jan 2010  
gaurav_verma_mca
What is Aspect oriented programming and where do I use it?
27 Aug 2010  
suranjithe
Helps you to use your resource file to build automated versioning controller
7 Nov 2008  
icemanind
How to automatically create data access layers and business layers from a Microsoft Access or a SQL Server database
7 Jun 2006  
stewartamackenzie
Enable intellisense for SQL Server repositories of messages, defaults, etc., in ASP.NET using BuildProvider.
1 Jun 2011  
Christopher R Davis, Ben Traynor
Bind your UI controls to generated objects generically
16 Mar 2014  
Sabarinathan A
Branch Level Code Coverage with NUnit, OpenCover, ReportGenerator and Visual Studio Integration
20 Oct 2013  
Bill_Hallahan
The following program is a code generator that generates a C program or a C++ program that has auto-generated parsing code.
22 Oct 2013  
Bill_Hallahan
Program to change the bracketing style of auto-generated code.
21 Mar 2011  
rodrigogroff
The main goal of the kit is enabling people to create C# Open Source software with this platform - you can export and import any project done with it... similar to SourceForge, but more .NET oriented.
12 Jun 2010  
prasonu123
Tips: Using proper guidelines and a template-framed style of coding will really helps developer to enjoy the coding with more understandable, reliable code and application development.
19 Aug 2009  
PIEBALDconsult
A method that uses a CodeDomProvider to compile program code from a string into an Assembly.
4 Jun 2010  
Syeda Anila Nusrat
Create a Business Logic Layer, Data Access Layer classes, and Stored Procedure scripts from a database table.
25 Aug 2011  
Nadege Rouelle
This article shows how to create a database project to manage database scripts in Visual Studio
8 Jun 2010  
hdv212
An open source code generation utility with some useful features to generate procedures,class for tables and .net code for procedures automatically.
8 Aug 2012  
pchinery
Shows how to use the DataStorage classes to generate type-safe settings classes.
29 Jun 2010  
vbnetskywalker
A tool which helps in generating codes for events/properties, so that users of your classes can use events/properties of embedded classes
20 Apr 2011  
Colin Eberhardt
This article describes a technique for automating codesnippets which are associated with a class via attributes. This results in a declarative approach to the generation of boiler-plate code.
3 Aug 2008  
Dave Elliott
An article on how to generate source code as well as populate Excel Spreadsheets.
1 Jul 2007  
Piyush S Bhatnagar
This article explains how CodeDOM can be used to generate code dynamcially and build it using dynamic code compilation. It also explains how to apply custom attributes.
27 Jan 2008  
Sacha Barber
How to use CodeDOM and CompilerServices to dynamically create assemblies/apps.
12 Jun 2012  
Herbrandson
How to use the DynamicMethod and ILGenerator classes to create dynamic code at runtime that outperforms Reflection.
25 Aug 2008  
Eduard Ene
An article on EGen - a scalable code generation and maintenance framework for C/C++/C#/Java, implemented in Ruby.
14 Jul 2010  
Christopher R Davis, Michael S Knight
Generate an Entity Framework data access layer using an nHydrate model.
2 Nov 2011  
kornman00
Using LINQ Expression Trees to auto generate binary streaming methods for enums.
22 Jul 2010  
Christopher R Davis, Micheal Knight
This article details how to use nHydrate to add an auditing framework to the nHydrate DAL and Entity Framework DAL.
1 Aug 2008  
Lionel LASKE
Learn how to generate your own code for the DLR using an Abstract Syntax Tree.
20 Oct 2013  
Bill_Hallahan
C code generator uses program make_cpp_class.py input file
25 Nov 2008  
Adeel Hussain
Generate properties from class variables using macro
15 Nov 2011  
Nicolas Dorier
An introduction to Genuilder Extensibility
24 Feb 2014  
Pranay Rana
Generate Sequcen Diagram
6 Aug 2011  
Esteban Alvarez
Shows how to generate entity classes by calling an utility from a powershell script
9 Feb 2008  
Adam Langley
Writing asynchronous code requires repetative programming if you have synchronous method stubs as well. This code generator creates them for you.
9 Mar 2009  
PIEBALDconsult
A console application to generate enumerations from a database query
10 Nov 2009  
Nicolas Dorier
Enhance Visual Studio and your build process in just two clicks. This tool does its best to be out of your way, while improving your development experience seemlessly.
30 Nov 2011  
Nicolas Dorier
Generate, verify, modify code files automatically during the build process of your projects.
13 Nov 2011  
Nicolas Dorier
Generate your own code during compilation without MSBuild knowledge
10 Jul 2008  
mark merrens
Generate 1 to n classes from database tables
13 Jun 2014  
Right Handed Monkey
Great Code Syntax Highlighter for Blog Posting
23 Feb 2011  
Jon_Slaughter
Design a Statemachine in XML and generate a C# code representing it.
30 Dec 2009  
Matthew Baxter-Reynolds
This article acts as an introduction to those looking to work with BootFX - an Open Source .NET application framework.
26 Jul 2006  
Chris Micali
This article serves as an introduction to AndroMDA, and covers the basics of model driven development.
31 Jul 2006  
Chris Micali
This article provides a step-by-step example of how to create a basic application with model driven development using AndroMDA for code generation.
10 Dec 2009  
Christopher R Davis, Michael S Knight
Generate applications using Inversion of Control with the nHydrate code generator.
9 Sep 2011  
Lunadix
This article discusses Luna Data Layer Code Generator for VB.NET.
12 Mar 2009  
Tiago Freitas Leal
The best kept secrets of CslaGen code generation and customization of generated Business Objects.
3 Nov 2010  
gordon_matt
Code generator for creating XML serializable classes from scanning the XML file itself.
6 Jul 2012  
mauriciobarros
Custom code generator for C# programming language. Supports MVC and three-tier architecture; ADO.NET, NHibernate and LINQ data access
28 Dec 2011  
Olivier Giulieri
A look at the minimal metadata needed (database mapping and user interface) for generic CRUD applications using the example of a to do list.
7 Apr 2014  
Dave Clemmer
Using Mo+ to generate a working application, which includes an Entity Framework model, OData services, view model client, and WPF application.
16 Oct 2013  
Dave Clemmer
Comparing the relative effectiveness of CodeSmith, T4, and Mo+ in meeting code generation requirements.
29 Jul 2013  
Lothar Behrens
When you wonder how boring the repetive work is, think about model driven development.
16 Jun 2014  
Lothar Behrens
How code generation can make the distributed architecture an easy task
4 Aug 2013  
Lothar Behrens
Customizing generated code to support phone number formatting
6 Dec 2008  
TL Wallace
Class diagram and code generation tool.
8 Jul 2012  
Christopher R Davis
Support multi-team development using modelling and code generation
12 Jun 2009  
Franck Paquier
NAnt user task that adds alarms on top of Source Monitor metrics to highlight source code that does not follow coding rules.
22 Dec 2008  
James Nies
Using NArrange to organize C# source code.
1 Dec 2008  
Dmitry Zubrilin
A 3-tier application framework and code generation tool - the way for rapid and effective development.
19 Feb 2011  
Christopher R Davis
How to use the nHydrate ADO.NET generator and keep your database in sync.
18 Feb 2011  
Christopher R Davis
How to use the nHydrate Generator Library.
31 Dec 2009  
Christopher R Davis, Michael S Knight
Extend nHydrate with your own custom generator templates.
5 Jan 2010  
Christopher R Davis, Michael S Knight
A comparison of nHydrate and the Entity Framework
10 Dec 2012  
MarkChimes2
A small utility that generates C# code for each of the layers in an nTiered system.
11 Jun 2010  
Olivier Giulieri
A generic Web User Interface for CRUD applications generating all screens at run-time based on external metadata. It comes with sample applications for address book, memo pad, to do list, restaurants list, wine cellar, and database structure documentation that are easily customizable.
14 Jul 2007  
daluu
Framework for porting code between different languauges and platforms through a standard XML schema.
25 Feb 2013  
Suresh Malluri
Project Structure and build scenarios
7 Nov 2009  
Daniel Vaughan
Generate project metadata with T4 and unburden yourself from string literals in XAML binding expressions and INotifyPropertyChanged event arguments.
23 Sep 2013  
AbhishekGoenka
This article describes the step by step process of creating project template and VSIX installer that deploys the project template.
7 Aug 2008  
BoneSoft
Describes a short hand modeling language for specifying and rendering .NET code models quickly and easily.
11 Nov 2013  
Bill_Hallahan
Code generator writes argument parsing code.
20 Dec 2011  
Shahriar Iqbal Chowdhury/Galib
T4 templetes with built-in support for CRUD operations, that utilize XML/XSD for DAL/BLL generation.
7 Jun 2010  
Ali Imran Khan Shirani
RAD Tool for C++ Developers, Code Generator
3 Apr 2013  
Eric Reynolds
Quickly churn out repetitive C++, C#, or Java code from any data that Python can read.
18 Jan 2006  
André Janus
Compile C#-Code using Microsoft.CSharp and System.CodeCom.Compiler
6 May 2010  
c2423
How to set up the COCO/R compiler with Visual Studio
16 Jan 2010  
shivashankarp
SharpTemplate enhances Script# by providing statically compiled, strong typed, super efficient HTML templating. This article is a tutorial for using SharpTemplate.
19 Aug 2008  
baker.alex
Generate source code and database scripts for any language or platform.
8 Jan 2009  
Paw Jershauge
Generate class shells from SQL Server database tables, (SQL 2005 & 2008 only). Output languages supported: C# and VB.NET.
12 Apr 2011  
Jephunneh Malazarte
How to use Generics and Reflection in order to programmatically create SQL scripts using C#.
22 Jul 2006  
statedriven
Drawing state diagrams, and C# code generation for the modified QF4Net.
26 Jun 2010  
Nicolas Dorier
Practical use case of Genuilder.Extensibility: Strongly typed AppSettings.
18 Oct 2009  
Nicolas Dorier
How to extend MSBuild to dynamically compile stuff during a build.
16 May 2008  
Dane Balia
Creating a DAL DLL using Subsonic and MySQL.
15 Nov 2008  
Mike Pagel
Taking advantage of the inherits directive in text templates to allow for a clean extension of the generated template class.
26 Jul 2008  
Shakeel Iqbal
A powerful tool for rapid application development.
12 Feb 2013  
gggustafson
This article presents two Windows utilities that copy the contents of directories and subdirectories from one directory to another. Transfer uses a graphical interface; XFR is a console application.
2 Apr 2011  
PIEBALDconsult
Copying base class constructors to derived classes
4 May 2008  
WillCaptain
ORMaper solution based on .NET (C#), add-in for VS IDE, and auto generating ORMaper code.
4 Jan 2010  
Leftend
A simple how-to on using the Custom Formatter capability within the AutoMapper library.
26 Jan 2010  
Christopher R Davis, Michael S Knight
Using LINQ with an nHydrate API for aggregation and bulk operations.
14 Jun 2010  
Jeremy Hutchinson
Using T4 to generate a wrapper for a WCF Client
9 Nov 2009  
Richard MacCutchan
Creating a custom wizard under Visual C++ Express
11 Jun 2010  
Abhishek Sur
All about Project and Item Templates. You can use Custom Templates to make your development process faster than you ever think. Create your own Template for Visual Studio and distribute with all others. You can also learn how to create an installer to install a template.
8 Jun 2010  
Olivier Giulieri
Looking at the possibility of using CRUD applications to manage other CRUD applications inside a web browser and without any hand-coding. Also, presenting a step wizard deriving the database structure from the UI rather than the opposite.
30 May 2012  
Joshi, Rushikesh
Create a customized project template, and let your team use it for repaid development.
4 Jun 2009  
Ronald Schlenker
Semi-automatic GUI generation from Domain Models.
29 Jun 2010  
ShlomiAtia
The code writer allows to transparently write code for C# and Java, for applications like serialization, equality, etc.
21 Jan 2012  
Nicolas Dorier
Access xaml resources in a strongly typed way
9 Jan 2012  
Nicolas Dorier
Stop wasting time on a stupid typo in binding paths.
13 Feb 2009  
latticesoft
XEML (Entity Markup Language) for Code Generation
27 May 2008  
Dustin Metzgar
A .Net 2.0 library that converts XMI into CodeDom. Part 1 introduces the library.
26 Sep 2008  
Serghei Sarafudinov
Using XML technologies for Model-Driven Engineering.
4 Oct 2011  
AVIDeveloper
An XML/XSLT based solution for auto-generating API and code.
28 Dec 2008  
Stein Borge
How to populate properties and customize layout.
22 Dec 2008  
Stein Borge
Template based code generator
7 Jun 2010  
Stein Borge
YACGen template construction introduction

Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 14 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid