Scaffolding Controllers and Views for Orchard
I have a Fluent nHibernate data tier that I would like to use in an Orchard Module. This data tier currently serves an MVC3 project but my Controllers/Views have way too much learning curve crap embedded to think they are worth salvaging.
I'd like to understand exactly how i should go about code-genning a set of CRUD for an MVC3 project that开发者_运维百科 will be used inside Orchard 1.0.
thx
Orchard won't give you that much added value on scaffolding CRUD stuff, except if the data in question fits well into the Orchard model for extensible contents. In that case, following one of the tutorials on how to create parts should be helpful. This being said, if you want to just integrate your existing MVC3 work into Orchard, make that an area, move the routes into Route.cs and add a module.txt manifest, and you're pretty much done (the hello world module tutorial explains some of that). I hope this helps.
精彩评论