Thanks to hammett, my code generator project has been accepted as a Castle contrib project. Everything is still the same but you now have to checkout the code from http://svn.castleproject.org/svn/castlecontrib/generator/trunk/.
By the way I’d like to say thanks to Carlos, Tanner, Peter and Kevin for their help and support.









Here are some links that I believe will be interested
It would be great if project structure could be generated by your tool. I’m trying to get involved with castel project, but in my opinion there is a lack of “instant gratification” feeling in using it.
There is a project structure generator, see my other post http://macournoyer.wordpress.com/2006/07/24/getting-monorail-closer-to-rails-again/
Yes ! Yes ! Yes ! Instant gratification !
Great Job ! Castel project setup, made really simple !
MonoRailsPrjs> generate.exe project MyApp
MonoRailsPrjs> cd MyApp
MyApp> nant setup
MyApp> edit config\database\development.xml
changed connection string
MyApp> script\generate.bat model …
MyApp> script\generate.bat model
MyApp> nant
MyApp> script\server.bat
point browser to http://localhost:8080/controler_name/list.aspx
evvai !!! !
thnks !
hooops ….. the following is better. i hope !
MonoRailsPrjs> generate.exe project MyApp
MonoRailsPrjs> cd MyApp
MyApp> nant setup
MyApp> edit config\database\development.xml
changed connection string
MyApp> script\generate.bat model TableName Field1 Field2 …
MyApp> script\generate.bat scaffold TableName controller_name
MyApp> nant
MyApp> script\server.bat
point browser to http://localhost:8080/controler_name/list.aspx
evvai !!! !
thnks !
no problem! glad you like it
generate registered as a windows executable and wont run on my kubuntu machine. Am I missing somthing?
You need to have Mono installed.
Then if you run : nant install you should get the proper setup to run generate and monorail cmd line from anywhere.
Or else you could run : mono bin/generate.exe