This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17588|Reply: 0

[Source] Flush understanding of ISession in NHibernate

[Copy link]
Posted on 6/29/2016 12:16:27 PM | | |
At first, I didn't know why I called Flush() after executing Insert or Delete and update, but I looked at it later


http://www.cnblogs.com/lyj/archive/2008/10/17/1313612.html


If the session is not synchronized, then the original call session saves the data before the database data is modified. Only when the Flush() function is called will it be synchronized with the data in the database.





Previous:SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999
Next:asp.net NHibernate configuration log4net logs sql statements
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com