Buch, Englisch, 760 Seiten, Format (B × H): 191 mm x 235 mm, Gewicht: 1399 g
ISBN: 978-1-59059-137-6
Verlag: Apress
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!
Zielgruppe
Popular/general
Autoren/Hrsg.
Fachgebiete
Weitere Infos & Material
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.