I'm starting to use NHiberante as a dat开发者_如何学Pythonaaccess tier.
I'm used to work with the repository model as a business model.This means, my domain model (not really a tier), my asp.net application tier, my repository tier which finally uses my dataaccess tier.
But with what I've learned by now (on NHibernate) I know that many logic is done within an ISession so I was wondering if NHibernate could be used within the repository tier.
Or perhaps there are even better ways to use NHibernate. Does anyone know where I could find a propriate example of how to use NHibernate in an webapplication?
Cheers, M.
S#arp Architecture is a complete example or a Web architecture using NHibernate.
You can use Nhibernate with Linq extension. By using Linq, you can write your logic in your service layer and repository only get items IQuerable.
精彩评论