You can find some of what you are looking for in the Steve Sanderson MvcScaffolding package.
Nuget
Install-Package MvcScaffolding
After installation (probably set some EF requirements), you could tint the basic CRUD views for your model as follows, assuming the model type is MySweetModel
Scaffold Views MySweetModel
Note that this command will not create a controller class, but should create the following views in the /Views/MySweetModel
- _CreateOrEdit.cshtml
- Create.cshtml
- Delete.cshtml
- Details.cshtml
- Edit.cshtml
- Index.cshtml
It looks like you can override the default T4 templates , but I never used MvcScaffolding outside the EF area. It is also possible that someone has already done this for your save layer, for example. NHibernate or whatever you use. I would have looked a bit before implementing my own templates.
David Feb 17 '12 at 12:50 2012-02-17 12:50
source share