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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With