ASP.NET MVC custom T4 templates for views

后端 未结 4 1579
走了就别回头了
走了就别回头了 2020-12-14 04:22

When I\'m adding a new strongly-typed view to an ASP.NET MVC project, I can select between different view content templates (Create Details, Edit, List). I have read these a

4条回答
  •  眼角桃花
    2020-12-14 04:53

    You can add a package to your project using NuGet that will add the existing code templates to your project. From that point you could edit them or just create new ones in the same location and you should see them in the tooling.

    http://nuget.org/List/Packages/Mvc3CodeTemplatesCSharp

提交回复
热议问题