开发者

nhibernate session starts

When I just Create the Factory, It seems to do a lot of work (in the log4net console) when it start without 开发者_JAVA技巧me asking him to do anything. could it be that those are just tests he does for himself?


Creating a sessionFactory is an expensive operation. Typically you only create one sessionFactory at the start of your application and store a cached version for creating your sessions.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜