开发者

nhibernate session strange behavior

开发者 https://www.devze.com 2022-12-12 10:09 出处:网络
i have an app with fluent nhibernate mappings.. when i start the app first time and initiate a session and a configuration an a session factory for the first time i see in the console that the sessio

i have an app with fluent nhibernate mappings..

when i start the app first time and initiate a session and a configuration an a session factory for the first time i see in the console that the session do some updates inserts and select on my mapped class

any one can explain this please..?

i see stuff like AbstractEntityPersister.Inse开发者_开发技巧rt


When the application first starts NHibernate creates static SQL for the CRUD operations of all your entities and caches them so that it doesn't have to create them for every request.

0

精彩评论

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

关注公众号