Code Generation in Microsoft .NET - Kathleen Dollard

Code Generation in Microsoft .NET

Buch | Softcover
760 Seiten
2004 | Softcover reprint of the original 1st ed.
Apress (Verlag)
978-1-59059-137-6 (ISBN)
58,84 inkl. MwSt
'Code Generation in Microsoft .NET' teaches how to implement automatic code generation - a significant new trend in enterprise software development to reduce costs and improve efficiency and reliability.
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!

Kathleen Dollard has been involved in the computer industry for a long time. She started (she claims) by experimenting with programming in junior high. After graduate work, she worked with the computer group at Texaco Research writing Fortran and helped usher in the age of PCs doing Lotus 1-2-3 macros. After working with 4GLs and Clipper, Dollard became an independent consultant, ultimately moving to Visual Basic when it became clear that Computer Associates would not release the Windows version of Clipper. Dollard is well known for her participation over the last 15 years with online communities, including BBSs, Compuserve, Fawcette, DevX, and Microsoft public newsgroups. She has been recognized in some form for her online work since 1994, and she's been a Microsoft "Most Valuable Professional" since 1998. Dollard is also active in the real-world communities of user groups, most recently with the Denver Visual Studio User Group and the Northern Colorado .NET SIG startup. A well-known writer and speaker, she is currently doing pioneering work in code generation using .NET and XSLT.

One The Process.- 1 Introducing Code Generation.- 2 Extracting Metadata.- 3 Outputting Code.- 4 Writing Handcrafted Code.- 5 Tying It All Together.- Two Code Generation in Action.- 6 Mapping Database Structure into Business Objects.- 7 Generating Stored Procedures.- 8 Generating Middle Tier Templates.- 9 Generating a WinForms Application.- 10 Generating a Web User Interface.- 11 Establishing Perspective.- Appendix A X-Survival.- Appendix B Dissecting the Metadata Extraction Tools.- Appendix C Details of the Code Generation Harness.- Appendix D CodeDOM Issues, Tips, and Tricks.

Zusatzinfo 34 Illustrations, black and white; XXX, 760 p. 34 illus.
Verlagsort Berkley
Sprache englisch
Maße 178 x 235 mm
Themenwelt Mathematik / Informatik Informatik Betriebssysteme / Server
Mathematik / Informatik Informatik Software Entwicklung
ISBN-10 1-59059-137-2 / 1590591372
ISBN-13 978-1-59059-137-6 / 9781590591376
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich