I wonder if there is any way that these pages always
use a custom mode.
Yes, there is. You can use T4 Templates
Visual Studio to customize automatic generation of Views
of a specific project.
The way with these templates can change according to Visual Studio version:
{VS_PATH} Common7 IDE Extensions Microsoft Web Mvc Scaffolding Templates
Read this content for a detailed step-by-step how to customize templates for an MVC5 project.
Below is a summary of the steps:
- Create a folder in your project with the name 'Codetemplate' and copy to it all the contents of the Templates folder passed above.
- Build from the Solution.
- Find in the copied content (Cs.T4 files) the snippets you want to customize. Note: Folder names indicate the generation being changed
This link will help you: https://www.c-sharpcorner.com/UploadFile/4fcb5a/step-by-step-implementing-t4-custom-templates-in-mvc5-projec/
– George Wurthmann
Perfect, this is exactly what I was looking for. Thank you.
– Thiago