I really like the AspView View engine for Monorail, not that the other view engines are bad - but...
Intellisense and a familiar syntax just does it for me, however the documentation is lacking behind.
So I have converted the monorail getting started sample application to use aspview. Also it is now a Visual Studio 2008 solution.
I have added a SQLCE sql server as a database backend, and all dependencies are also included. So you can get started by just downloading, no other software has to be installed. I am assuming that you are using ReSharper, if not do you self a favor and install it now.
It is in my trunk, and there is a zip file for download.
Using the sample
- After downloading and unzipping the file, open src\GettingStartedSample.sln.
- Do a F5 and the Home controller should show with the Index action (http://localhost:54321/home/index.rails).
- In the HomeController class there are two other actions (http://localhost:54321/home/erroneousaction.rails and http://localhost:54321/home/datatotheview.rails), you can set a break point before browsing to the urls.
- Next try out the ContactController (http://localhost:54321/contact/contactform.rails), again a break point can be set.
- SupplierController is a Scaffolding controller so no break points can be set, but try to create a supplier(http://localhost:54321/supplier/list.rails). The SQLCE database in "C:\temp.sdf" contains the data.
- Finally nagivate to (http://localhost:54321/product/list.rails), and create and edit a product. Again the data goes to "c:\temp.sdf"
All logging from nhibernate is logged by the trace writer, and should be visible in the Output/Debug window in VS.
Version: Both Monorail and AspView are trunk versions (Rev. 5227).
4 comments:
Cool stuff, Morten. Can you place a link on http://using.castleproject.org/display/MR/Home#Home-Blogposts
--Roelof.
Cool thing. thx for the effort.
off-topic - I can't find a way to link into a single post from your blog's homepage (using FF3). titles aren't click-able, and I see no permalink.
I think the permalink is in the bottom.
posted by Morten Lyhr @ 21:18 <- this is the permalink, go figure :-)
Can we have the sample code to run in vs2005 please?
Post a Comment