开发者

What is the best businessmodel when using NHibernate to access the database?

开发者 https://www.devze.com 2022-12-30 11:05 出处:网络
I\'m starting to use NHiberante as a dat开发者_如何学Pythonaaccess tier. I\'m used to work with the repository model as a business model.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号