0

usually what we do is for scaffolding we specify a model, the thing is i have more than hundred models, i want to get list of all the files from a namespace.project directory and run scaffolding against all of them.

I am using template in ps1 script to generate code

Charles
  • 50,943
  • 13
  • 104
  • 142
Moon
  • 19,518
  • 56
  • 138
  • 200
  • Hey. Use the DTE to get a specific project and directory. Then just iterate over the classes in that directory that meet your criteria. For each class found that you want to generate code on, call the scaffolder and pass in the information. I can provide some simple examples if needed ? – Uffe Jun 19 '13 at 20:13
  • @Uffe. please do... the official documentations are scary for me – Moon Jun 20 '13 at 05:32
  • and please post as an answer so that i can accept – Moon Jun 20 '13 at 05:33

1 Answers1

0

This is a small PS script from my CodePlanner project. It might help you on the way.. http://pastebin.com/x5P7U42a

Uffe
  • 2,275
  • 1
  • 13
  • 9
  • It's working for me, but throw me an email at uffe@xsockets.net and I will provide a sample – Uffe Jun 20 '13 at 21:09