开发者

How to add a StatelessSession session and how would I use it using this Session management technique?

I finally got this lazy session setup to work: http://nhforge.org/blogs/nhibernate/archive/2011/03/03/effective-nhibernate-session-management-for-web-apps.aspx

Other than the default session, I want to create a StatelessSession that is for read-only or that doesn't keep track of changes.

So for some queries in my repository I will choose the default, and f开发者_如何学运维or others I can choose to use the StatelessSession.


You can try to define two session for two different database user, the first user has full grant on data object, the second user has only read (select) grant on database object.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜