What happened to CodeGenerationTools?

entity-framework t4

Question

I have access to the CodeGenerationTools class for entity framework T4 templates.

For instance:

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)));
}

I am unable to locate the definition of this class, however.

What assembly is it a part of? What are its constituents?

Thanks

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

Accepted Answer

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

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

This data is often kept in the installation location for Visual Studio:

%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