I’m pretty sure I am a bit confused here (I’m even confused about being confused).
I’ve already created my database in SQL Server 2008.
I’m now trying out S#arp Architecture for the first time and I’m was looking into using CRUD scaffolding. From the instructions it seems like I basically have to RECREATE the entire database within the ScaffoldingGeneratorCommand.tt file? Kinda pointless for me, right?
Am I trying to go backwards here? What I’d like to do is go from my existing database to CRUD classes.
If all you’ve done is created the database, you may want to consider scrapping that and creating the classes first as in option 1 from Alec. Then you can let NHibernate generate the database for you.
But to answer your question, I’ve always just created the models/views/controllers from scratch since I never really liked the output of generated code. I believe SharpArch is even planning on doing away with the T4 templates in favor of Templify [source] because of it’s issues.