This is a migrated thread and some comments may be shown as answers.

Autocommit?

1 Answer 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erik
Top achievements
Rank 2
Erik asked on 12 Dec 2011, 04:38 PM
Hello,

I have a webapplication and a data application with a model.

I see the following happening: I open a entity at page load of Page1.aspx and save the entity to the session. on postback I change a property of the entity. Then, without saving anything, the user skips to Page2.aspx, that has nothing to do with Page1.
Now, the changes are save to the database... why? I did not do any save actions.

I've been reading about transactions, but only see a autostart. Also I see concurrency possibilities, but what exactly influences the above behaviour I cannot say. I find the doc somewhat poor/short (still, pointed this out a few times now) and w/o any example, not even an elaboration/textual example to put it in context...

So, why does the OA context autocommit when there was no data saved explicitly? How can I change this behaviour to explicit saving?

Erik

1 Answer, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 13 Dec 2011, 01:58 PM
Hi Erik,

I was unable to reproduce the wrong behavior on my side. Please find attached the sample application which I used to reproduce the problem.
I should ask you to provide us with additional information or a sample application that demonstrates the issue.
I am looking forward to hearing from you.

Best wishes,
Damyan Bogoev
the Telerik team

Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Erik
Top achievements
Rank 2
Answers by
Damyan Bogoev
Telerik team
Share this question
or