Tuesday, May 5, 2009

ASP.NET MVC scaffolding

I've been recently playing a bit with the scaffolding capability in ASP.NET MVC tooling support. Being it all nice and dandy it's still a lot of work to be done to get a simple CRUD operation working with any kind of data access technology.

As a result I've started a code/view generator that will allow for bottom-up scaffolding of all the typical layers in a web application: the entity being persisted, data access using NHibernate, a pass-through service layer, the controller with default CRUD actions and a set of views supporting the controller.

As a matter of fact the basic idea behind this tool came from the Rails framework. In there you can scaffold an entity with a page and all the default CRUD behavior from the command-line. This tool will allow for exactly that but instead of taking advantage of the field:type syntax it'll use the NHibernate hbm.xml mapping files to describe an entity and its relation to other entities.

Here's a link in case you want to monitor the progress or (if you feel up to it) to join the effort:

MVCGen

Have fun!

EDIT on 21/06/2011: since I'm no longer working with .NET (or ASP.NET MVC for that matter) the project is dead.

No comments: