Daily Archives: August 20, 2010

Modified Description of Adding Inheritance into T4 Template from Chapter 18

This is in reference to Programming Entity Framework 2nd Edition

When I originally wrote the directions for modifying the T4 template in Chapter 18 (Using POCOs and Self-Tracking Entities in WCF Services), I was working with the “almost” RTM version of the Microsoft’s POCO T4 template. Since my modified template continued to work after RTM, I never thought to revisit that text and discovered yesterday that it doesn’t follow the current version of the template and therefore the instrux are unclear & confusing.

My discovery did not come from a reader but was made when I was working with a client and wanted to make that same modification in her template.

When I originally wrote that description I was borrowing some code from the EntityObject template that had a dependency on a variable called ModelNamespace. But in the newer version of the POCO template, that variable is no longer used.

Here are the modified paragraphs and links to the templates that you can download from the book’s website.

read more at : http://learnentityframework.com/LearnEntityFramework/errata/modified-description-of-adding-inheritance-into-t4-template-from-chapter-18/