views:

481

answers:

1

Is this a good guide if I want to implement the repository pattern in my asp.net mvc application?

+3  A: 

Mostly. I haven't read it fully, but I prefer S#arp Architecture idea of SaveOrUpdate (mapped from NHibernate) for entities, it's more convenient thant Add/Remove. But it may be just personal preference. In any case you can look at S#arp for already implemented repositories over NHibernate/FluentNHiberate.

queen3
Looks really nice, thanks
Marcus
I'm having a problem with the vs template and you might know what's the problem. I have windows 7, visual studio 2008, t4 toolbox and the template installed in the correct place but i get an error that looks like this http://dl.getdropbox.com/u/1495742/Untitled-1.png
Marcus
Does this help? http://sharparchitecture.codeplex.com/WorkItem/View.aspx?WorkItemId=6969
queen3
Yeah sure it did, thanks alot!
Marcus