Where is CodeGenerationTools
In entity framework T4 templates, I can use class CodeGenerationTools.
For example:
void WriteProperty(**CodeGenerationTools** code, EdmProperty edmProperty)
{
WriteProperty(Accessibilit开发者_运维百科y.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
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
精彩评论