Question

Using MvcScaffolding I can call these powershell commands to scaffold the Controllers and Views automagically.

scaffold Controller Products
scaffold Controller Reviews

Is it possible to combine the two commands into one? e.g

scaffold Controller Products, Reviews

Thanks

Was it helpful?

Solution

PM> $models="Products","Reviews"

then to do it automa<T>ically,

PM> foreach($m in $models) { Scaffold Controller $m }

OTHER TIPS

You can use multiple scaffold commands in one line

Scaffold Controller Products; Scaffold Controller Reviews
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top