Hi,

If you load an object using the NHibernate session and modify that object
in memory and then commit the transaction, a common behaviour is that
NHibernate would detect the changes in the object (dirty checking) and
transmit the changes to the database (flushing) before issuing the command
to commit the database transaction.

The exact behaviour depends on a myriad of factors such as how you mapped
the object in the NHibernate configuration, how you load it, what flush
mode you are using etc. Your question is very broad and shows no actual
code, so the answer is unavoidably rather vague. Unless you have a
specific, small and self-contained, code example you are wondering about, I
recommend familiarizing yourself with the NHibernate documentation at
https://nhibernate.info/doc/index.html.

/Oskar



Den lör 31 okt. 2020 kl 08:16 skrev Junior Lapuñete <[email protected]
>:

>
> I have a question, for example I do a retrieve, modify, delete and create,
> Is NHibernate session registers those activities automatically before we do
> a commit of the transaction?
>
> thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nhusers/18d33761-44c0-4d35-b96d-318c6a571147n%40googlegroups.com
> <https://groups.google.com/d/msgid/nhusers/18d33761-44c0-4d35-b96d-318c6a571147n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nhusers/CAHOuc7O8RrU-5_Nxd50Avb%3D33q7eFjY1ou794rQt19vjPxEzPg%40mail.gmail.com.

Reply via email to