Course info
Aug 15, 2011
1h 44m

Each version of ASP.NET MVC has seen an increase in developer productivity features. However, that reaches a whole new level with the addition of MVC Scaffolding. Whether you are an MVC newbie or an experienced MVC developer looking for an increase in productivity, MVC Scaffolding has something for you. This course will start with the basics and then dive into more advanced features of MVC Scaffolding that will allow you to develop applications with shocking speed, customized to the specific needs of your application. MVC Scaffolding is absolutely a tool that every MVC developer should have in their toolbox!

About the author
About the author

Steve is a Program Manager with Microsoft on the Azure Global Engineering team. Prior to joining Microsoft, he was a 7-time Microsoft ASP.NET MVP.

More from the author
ng-bootstrap Playbook
2h 48m
Nov 20, 2018
More courses by Steve Michelotti
Section Introduction Transcripts
Section Introduction Transcripts

Customizing MVC Scaffolding
Hi. This is Steve Michelotti from Pluralsight. In this module we're going to cover customizing MVC Scaffolding. At this point you should have a pretty decent understanding of how to use MVC Scaffolding. If not, I recommend you go back and view the first module, which shows you everything you need to know to get up and running with MVC Scaffolding pretty quickly. In this module I'm going to cover a number of topics. First I'm going to show the package structure of scaffolding so you get a better understanding of how things are put together behind the scenes. Then I'm going to cover scaffolders because it is really important you understand how scaffolders work, default scaffolders, and how you can change the default scaffolders. Then I'm going to show how to customize scaffold view templates. You're always going to hear me say, if you're not happy with the code that scaffolding is producing, then it's your responsibility to change it, to customize it how you want it for your project. And finally, I'm going to show how to customize scaffold controller templates so you really get an understanding that scaffolding is more about just producing code for your markup, but also any C# code that is participating in your scaffolding--that can be changed easily as well.

Custom Scaffolders
Hi. This is Steve Michelotti from Pluralsight. In this module we're going to cover custom scaffolders. Now this is different from module 2 where we talked about customizing scaffolding because in module 2 we were customizing the templates that came with the built-in scaffolders. In this module we're going to cover how to build your own custom scaffolders regardless of whether you're actually in MVC or in another framework. The first thing I'm going to do is create just a very basic custom scaffolder so you see how that works. Once we do that then we're going to go into a more complex scaffolder. In this complex scaffolder we're going to show how to leverage the built-in T4 scaffolders so our scaffolder is going to make use of other scaffolders. Also, our scaffolder is going to make use of the built-in commandlets that come with T4 scaffolding. I'm also going to show how you package up your scaffolder in the form of a NuGet package for reuse and redistribution. And finally I'm going to cover a little bit about how you can customize the scaffolding environment. The first thing I'm going to show is how to build your own custom scaffolder.