NET Code Generator
Generating Sub Directories
Basic Tasks > Creating New Templates > Generating Sub Directories

Use this pattern for saving to a sub directory:

 

string fileName = "Create.cshtml";

SaveOutput(fileName, entity.NamePascalCasePlural);