views:

17

answers:

1

Does anybody know if the saveChanges method sends the SQL script that is wrapped into transaction?

thanks in advance.

A: 

Yes it will send the SQL to the database. But you need to commit the changes for them to be saved, otherwise they will be lost when the transaction timesout.

Shiraz Bhaiji
"Commit changes" - you mean to call "saveChanges" method, right?
AndrewG
No, if you use a transaction, you must first savechanges on your data, then commit on the transaction
Shiraz Bhaiji