5

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

Alec
  • 8,529
  • 8
  • 37
  • 63
Fixer
  • 5,985
  • 8
  • 40
  • 58

2 Answers2

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

then to do it automa<T>ically,

PM> foreach($m in $models) { Scaffold Controller $m }
Benjamin
  • 3,134
  • 6
  • 36
  • 57
2

You can use multiple scaffold commands in one line

Scaffold Controller Products; Scaffold Controller Reviews
bart s
  • 5,068
  • 1
  • 34
  • 55