Book Image

Learning NHibernate 4

Book Image

Learning NHibernate 4

Overview of this book

Table of Contents (18 chapters)
Learning NHibernate 4
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The architecture diagram


We are coming to the end of a very important set of features of NHibernate. Before we close this chapter, I wanted to bring back the NHibernate architecture diagram that I had shown you in the previous chapter and update it with the concepts we learned in this chapter.

The following diagram is not vastly different from the previous one but it does highlight important concepts around sessions and transactions. You can begin one or more transactions inside a session. When a transaction is committed, session is flushed. It is at this point that all the SQL statements required to synchronize the in-memory state of the entities to database, are sent to database server for execution.