What determine if session.Save(...) sends query to the database immediately?
Or it defers to commit()?
What determine if session.Save(…) sends query to the database immediately? Or it defers to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Mainly it depends on the chosen identity generation strategy. If it is set to something like native/identity seesion.Save() will send SQL to db immediately. That is because Save method needs to return id of the saved entity.