Code Generation in Microsoft .NET / Edition 1

Code Generation in Microsoft .NET / Edition 1

by Kathleen Dollard
     
 

ISBN-10: 1590591372

ISBN-13: 9781590591376

Pub. Date: 01/21/2004

Publisher: Apress

Code generation has the potential to revolutionize application development. Rather than handcrafting each piece of code, developers are increasingly turning to code generation based on templates and applications of business logic to automatically perform a variety of tasks. This book teaches the technical details of code generation in .NET through a coherent series

…  See more details below

Overview

Code generation has the potential to revolutionize application development. Rather than handcrafting each piece of code, developers are increasingly turning to code generation based on templates and applications of business logic to automatically perform a variety of tasks. This book teaches the technical details of code generation in .NET through a coherent series of steps that will help you to incorporate code generation into your own development efforts.

Veteran author Kathleen Dollard teaches code generation as a scripted repeatable process using templates you control, so you're not tied to a particular framework or style. Because you can regenerate code at any time, you can incorporate changes, including database changes, throughout the life of your application. The templates are flexible and designed to work smoothly with the handcrafted code youll use to customize your application. The underlying fundamentals are explained along with three specific techniques: outputting code to a stream, using the Code DOM, and using XSLT-based code generation.

In addition to the text, the tools in the book (downloadable in both VB .NET and C#) include a mechanism to extract information from SQL Server; a tool for editing and running code-generation scripts; a simple, flexible ORM tool that relates your database structure to your runtime class model; and a set of templates you can use as the starting point for your adventures in code generation.

Generating repetitive sections of code frees you to focus on the features that make your application unique. Code generation will turbo-charge your development cycles by offering speed, reusability, agility, and consistency. Go forth and generate!

Read More

Product Details

ISBN-13:
9781590591376
Publisher:
Apress
Publication date:
01/21/2004
Edition description:
1st Corrected ed. 2004. Corr. 2nd printing 2004
Pages:
760
Product dimensions:
7.00(w) x 9.25(h) x 7.50(d)

Table of Contents

Foreword
Foreword
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Pt. 1The Process1
Ch. 1Introducing Code Generation3
Ch. 2Extracting Metadata53
Ch. 3Outputting Code113
Ch. 4Writing Handcrafted Code179
Ch. 5Tying It All Together215
Pt. 2Code Generation in Action291
Ch. 6Mapping Database Structure into Business Objects293
Ch. 7Generating Stored Procedures345
Ch. 8Generating Middle Tier Templates377
Ch. 9Generating a WinForms Application421
Ch. 10Generating a Web User Interface471
Ch. 11Establishing Perspective509
App. AX-Survival543
App. BDissecting the Metadata Extraction Tools609
App. CDetails of the Code Generation Harness647
App. DCodeDOM Issues, Tips, and Tricks691
Index707

Read More

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >