MVC3 Scaffolding - customize view templates
I'm using the MVCScaffolding nuget package.
Where can I find documentation on the values we can use when customizing our MVC scaffolding templates?
i.e. I have done
PM> scaffold CustomTemplate View Edit
which creates the开发者_运维问答 Edit.cs.t4 template for me. It has things like:
<#= Model.ViewDataTypeName ?? String.Empty #>
I would like to use something like
<#= Model.ViewDataPluralisedName ?? String.Empty #>
but because there is no Intellisense, I have no idea what fields are available to me.
Does someone know where the documentation for this is?
I couldn't find any documentation, but I was able to find out what I needed to know by downloading the mvc scaffolding source code from http://mvcscaffolding.codeplex.com/ and looking in there.
精彩评论