Ticket S170226
Visible to All Users

OptimisticLocking - Enhance Properties Modifications Tracking

created 12 years ago

Client-side object modifications can now be safely merged with the database-side object state, when changed properties sets do not intercept. To enable this new mode, apply the OptimisticLocking attribute with the OptimisticLockingBehavior.LockModified parameter. New options are now available for the Session.OptimisticLockingReadBehavior property - it can now be set to MergeCollisionIgnore, MergeCollisionThrowException and MergeCollisionReload (you can also change the behavior for each persistent class individually, via the OptimisticLockingReadBehavior attribute).

Show previous comments (12)
AK AK
Alexander Krakhotko (Xafari team) 4 years ago

    Greetings!

    related question by multi-user work …
    Will there be a permanent lock when these fields change (described in the Field-Level Locking article)?
    how to exclude these fields from "Field-Level Locking" validation?

    Andrey K (DevExpress Support) 4 years ago

      Hello,

      We need additional time to answer your questions.

      Thanks,
      Andrey

      Andrey K (DevExpress Support) 4 years ago

        Hello,

        I've created a separate ticket on your behalf (T959552: How to exclude properties from "Field-Level Locking" validation). It has been placed in our processing queue and will be answered shortly.

        Thanks,
        Andrey

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.