What is the best businessmodel when using NHibernate to access the database?
Posted
by Sem Dendoncker
on Stack Overflow
See other posts from Stack Overflow
or by Sem Dendoncker
Published on 2010-05-18T07:15:50Z
Indexed on
2010/05/18
7:20 UTC
Read the original article
Hit count: 150
Hi,
I'm starting to use NHiberante as a dataaccess 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.
© Stack Overflow or respective owner