使用MvcScaffolding
我可以调用这些powershell命令来自动搭建控制器和视图。
scaffold Controller Products
scaffold Controller Reviews
是否可以将两个命令合并为一个?例如
scaffold Controller Products, Reviews
谢谢
PM> $models="Products","Reviews"
然后去做automa<T>ically
,
PM> foreach($m in $models) { Scaffold Controller $m }
您可以在一行中使用多个脚手架命令
Scaffold Controller Products; Scaffold Controller Reviews