Skip to main content
All docs
V25.1
  • .NET 8.0+
    • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

    OptimisticLockAttribute.OptimisticLockHandling Property

    Specifies conflict resolution mode in your EF Core-based XAF application.

    Namespace: DevExpress.ExpressApp.DC

    Assembly: DevExpress.ExpressApp.v25.1.dll

    NuGet Package: DevExpress.ExpressApp

    Declaration

    public OptimisticLockHandling OptimisticLockHandling { get; set; }

    Property Value

    Type Description
    OptimisticLockHandling

    Conflict resolution mode.

    Remarks

    The following code snippet specifies Reload as conflict resolution mode:

    using Microsoft.EntityFrameworkCore;
    
    namespace MainDemo.Module.BusinessObjects;
    
    [OptimisticLock(OptimisticLockDetection = OptimisticLockDetection.AllFields,OptimisticLockHandling = OptimisticLockHandling.Reload)]
    public class Department : BaseObject, ITreeNode {
        //...
    }
    
    See Also