Hi, I had just lost my database and all the backups, I know it is pathetic at the first place but again .. bad things do happen :). Now I have a complete source code generated by SubSonic against my database. I was wondering is there a way I can recreate my database using Subsonic ??
A:
No, SubSonic does not have a way to recreate the database from the generated SubSonic source. What you are asking is possible to do, but you'll have find another solution or write it yourself.
sparks
2010-07-12 17:09:52
A:
You can always make use of SubSonic Simple repository functions, it will not recreate your releationships, but should be able to effectivevly create your database based on your class files.
It might be some work though, cause you will have to mark your classess with a couple of attributes
Read more here: http://www.subsonicproject.com/docs/Using_SimpleRepository
Dusty Roberts
2010-07-16 09:01:53