I have an ASPNET MVC 3 project made with Entity Framework 4 (database first). I'm trying to use scaffolding to create CRUDs with jqgrid following: MVC Custom Scaffolding
But when I run something like Scaffold ControllerWithAjaxGrid StockItem it says:
Invoke-Scaffolder : A positional parameter cannot be found that accepts argument 'StockItem'. At line:1 char:9 + Scaffold <<<< ControllerWithAjaxGrid StockItem + CategoryInfo : InvalidArgument: (:) [Invoke-Scaffolder], ParameterBindingE开发者_如何学编程xception + FullyQualifiedErrorId : PositionalParameterNotFound,T4Scaffolding.Cmdlets.InvokeScaffolderCmdlet
Any ideas?
I'm tried to use the MVCScaffolding from nuget packages as well (Ajax Grid Scaffolder) but it doesn't show add nor edit or delete buttons). Any ideas on that one? I prefer to use the first one if possible.
Thanks in advance! Guillermo.
I needed to copy the T4 templates, that, of course, made it work.
精彩评论