What happened to CodeGenerationTools?

entity-framework t4

Question

In entity framework T4 templates, I can use class CodeGenerationTools.

For example:

void WriteProperty(**CodeGenerationTools** code, EdmProperty edmProperty)
{
    WriteProperty(Accessibility.ForProperty(edmProperty),
                  code.Escape(edmProperty.TypeUsage),
                  code.Escape(edmProperty),
                  code.SpaceAfter(Accessibility.ForGetter(edmProperty)),
                  code.SpaceAfter(Accessibility.ForSetter(edmProperty)));
}

However, I can't find where this class is defined.

Which assembly does it come from? What are its members?

Thanks

1
17
6/12/2011 4:53:55 PM

Accepted Answer

That is not class from assembly. It is included class from another template:

<#@ include file="EF.Utility.CS.ttinclude"#>

This files is normally stored in VS installation directory:

%VSINSTALLDIR%\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes
17
6/12/2011 5:41:16 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow