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

Summary


Being able to store new data or update existing data in the database is an important milestone in our NHibernate journey. In this chapter, we learned how to save transient entities and how to update persistent entities. We also learned how transitive persistence and cascading of operations takes a lot of complication away from your data access layer. We then looked at subtleties around different cascade styles and hopefully know more about when to use which cascade style. Bidirectional associations make working with code easy but they may add challenges to saving the data. It always helps to use convenience method that would transparently set both ends of bidirectional association. One of the most important take away from this chapter was to understand the use of transactions in NHibernate.

We are now ready to plunge into another important feature of NHibernate (or should I say set of features) that let us retrieve data from database using various different criteria. In our next chapter...