开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜