scaffold multiple models with one command

Jul 2, 2011 at 11:58 PM

I found a welcome surprise today and found that I can use a power shell script scaffold multiple models with one command, it such a basic idea and I actually can't believe it took me this long to realize this :)


add a text file to a project called project.ps1

add the following to the contents

Scaffold controller -repository -force Clients

Scaffold controller -repository -force ClientTasks 

At the package manager console type the following and press enter

.\TestProject\ project.ps1