Download e-book for kindle: Code Generation in Microsoft .NET by Kathleen Dollard


By Kathleen Dollard

Code iteration has the aptitude to revolutionize program improvement. instead of handcrafting every piece of code, builders are more and more turning to code new release in accordance with templates and purposes of commercial common sense to instantly practice various projects. This publication teaches the technical info of code iteration in .NET via a coherent sequence of steps to help you to include code iteration into your individual improvement efforts.

Veteran writer Kathleen Dollard teaches code iteration as a scripted repeatable approach utilizing templates you keep an eye on, so you are not tied to a selected framework or type. since you can regenerate code at any time, you could include adjustments, together with database adjustments, in the course of the lifetime of your program. The templates are versatile and designed to paintings easily with the hand made code youll use to customise your program. The underlying basics are defined in addition to 3 particular concepts: outputting code to a circulate, utilizing the Code DOM, and utilizing XSLT-based code new release.

In addition to the textual content, the instruments within the ebook (downloadable in either VB .NET and C#) comprise a mechanism to extract info from SQL Server; a device for enhancing and operating code-generation scripts; an easy, versatile ORM instrument that relates your database constitution in your runtime type version; and a collection of templates you should use because the place to begin on your adventures in code iteration.

Generating repetitive sections of code frees you to target the beneficial properties that make your program distinct. Code new release will turbo-charge your improvement cycles via supplying pace, reusability, agility, and consistency. cross forth and generate!

Show description

Read Online or Download Code Generation in Microsoft .NET PDF

Best c# books

Beginning CSharp Game Programming - download pdf or read online

Are you prepared to aim your hand at programming video games utilizing C#? "Beginning C# video game Programming" is your perfect introductory guide—designed to jumpstart your event with C# and DirectX nine. It comprises the basic themes you’ll want to know and covers extra themes that you’ll locate useful alongside the best way.

Read e-book online Visual C Sharp 2005 Demystified PDF

There’s no more straightforward, quicker, or simpler approach to research the relatively tricky subjects
Visual C# 2005 Demystified explains the language and its libraries and functions in addition to the right way to use the built-in improvement atmosphere. This self-teaching advisor comes whole with key issues, history info, quizzes on the finish of every bankruptcy, or even a last examination. basic adequate for newbies yet demanding sufficient for complex scholars, this can be a energetic and exciting brush-up, introductory textual content, or school room complement.

Beginning Windows Phone 7 development by Henry Lee PDF

Microsoft is injecting new strength into the shrewdpermanent cell market with the subtle home windows telephone 7. This new power equates to new possibilities for you, the cellular developer. starting home windows mobilephone 7 improvement has been written in particular that can assist you grab those possibilities and start developing functions for this interesting new cellular gadget platform.

Additional info for Code Generation in Microsoft .NET

Sample text

XSLT is also flexible about the use of single and double quotes, allowing easier handling of nested strings. An important secondary benefit is that XSLT code generation doesn’t allow you to cheat on the isolation of metadata. Later in this chapter and in Chapter 2, you’ll see the benefits of isolating metadata and its creation. In a brute-force or CodeDOM approach, you could mix running queries that grab fragments of information into the code outputting process. Mixing these two processes makes debugging and reuse difficult.

Understanding the Five Steps of Code Generation The conscious code generation process I use consists of five steps, as shown in Figure 1-1. Figure 1-1. Each of the five code generation builds on the previous step. As you can see from Figure 1-1, the five steps are as follows: 24 1. Design architecture. 2. Collect metadata. qxd 12/18/03 1:27 PM Page 25 Introducing Code Generation 3. Build and run templates. 4. Handcraft code. 5. Tie it together with integration and testing. The pyramid in Figure 1-1 illustrates that you’ll want a strong architectural basis for metadata collection.

Design and architecture are vague, fluffy terms. I don’t want to challenge your current semantic understanding of them. From a code generation perspective, design and architecture encompasses all the work you do to understand what your code generation output should look like. NOTE The easiest way to move from design/architecture to code templates is to create a sample file and test it. This example source code file illustrates what you’re creating, and I’ll call it your sample file or target file.

Download PDF sample

Rated 4.11 of 5 – based on 18 votes