ASP.NET MVC 3 and NHibernate Scaffolding

I found this article [ http://blog.stevensanderson.com/2011/01/13/scaffold-your-aspnet-mvc-3-project-with-the-mvcscaffolding-package/ ], which explains how to use MVC Scaffolding with one-to-many relationships in EF to create a list with a numbered collection as an option.

I tried to use this with my project, but I had a problem - I do not want to use EF (or include a link to it). I use POCOs, which are then displayed using the repository template and saved using NHibernate.

Is there a way to create the same forest lists for POCOs without creating the DataContext created by the article.

Edit: I know how to do this manually, I'm looking for a way for the scaffold code to do this for me.

+5
asp.net-mvc-3 nhibernate scaffolding
Aug 09 '11 at 11:28
source share
2 answers

I think the T4 Template Override message from the same series should tell you everything you need to know to switch to the NHibernate based repository template. If you end up implementing your own, send them somewhere :)

+3
Aug 09 '11 at 17:52
source share

I saw a project that tried to implement templates for NHibernate and MVC scaffolding, but according to this thread seems to be closed.

+1
Aug 09 2018-11-11T00:
source share



All Articles