Dynamic scaffolding for S#arp Architecture

0 views
Skip to first unread message

orjan

unread,
Feb 14, 2009, 5:04:02 AM2/14/09
to S#arp Architecture
First of all I would like to thank the developers of #Arch, I think
that this project fills an empty space and bridges a couple
interesting frameworks from my point of view.

I've been using grails for a while and one feature that I'm particular
fond of is the way to create dynamic scaffolding in
the controller. All you have to do is:

http://grails.org/doc/1.1/ref/Plug-ins/scaffolding.html
class BookController {
def scaffold = true
}

And you will have a automatically generated CRUD GUI for your domain
object

I don't know if there's something like this available for asp.net mvc
or if a similar feature is interesting for #Arch?

Regards,

Örjan

Billy

unread,
Feb 14, 2009, 4:09:51 PM2/14/09
to S#arp Architecture
Hi Örjan,

Thanks for bringing this up about grails. It's great to see how other
technologies approach a given problem and garner (aka - steal) ideas
from them. Although it would be prohibitively difficult (nor desired)
to emulate grails exact approach to scaffolding, #Arch does have a
rather sophisticated scaffolding generator, and a much more extensible
one coming with the RC release (which I've been trying to get ready
for the last week and should have ready very very soon).

To quickly summarize how it'll be done in #Arch RC, you
programmatically create an object called EntityScaffoldingDetails
which holds details such as the entity name, the namespace, along with
property details such as the property name, type, domain signature
inclusion, attributes, default test values, and SQL generation
details.

Billy
Reply all
Reply to author
Forward
0 new messages