Chen Kinnrot
Chen Kinnrot

Reputation: 21015

nhibernate session strange behavior

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.Insert

Upvotes: 0

Views: 103

Answers (1)

Richard Bramley
Richard Bramley

Reputation: 478

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.

Upvotes: 1

Related Questions