Can I tint multiple controllers with a single command?

Using MvcScaffolding, I can call these powershell commands to automatically create controllers and views.

scaffold Controller Products scaffold Controller Reviews 

Is it possible to combine two teams into one? eg

 scaffold Controller Products, Reviews 

thanks

+4
source share
2 answers
 PM> $models="Products","Reviews" 

then do it automa<T>ically ,

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

You can use several scaffold commands in one line

 Scaffold Controller Products; Scaffold Controller Reviews 
+2
source

All Articles