2 posts, 0 answers
  1. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 12 Dec 2011 Link to this post


    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?

  2. Damyan Bogoev
    Damyan Bogoev avatar
    581 posts

    Posted 13 Dec 2011 Link to this post

    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!

Back to Top