Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is CodeGenerationTools

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

like image 933
user380719 Avatar asked Jun 12 '11 16:06

user380719


1 Answers

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
like image 129
Ladislav Mrnka Avatar answered Oct 08 '22 01:10

Ladislav Mrnka