Skip to main content
All docs
V25.2
  • EFCoreObjectSpaceProvider<TDbContext>.OptimisticLockDetection Property

    Specifies whether XAF identifies conflicting changes by using just the object’s concurrency token or by assessing all object properties.

    Namespace: DevExpress.ExpressApp.EFCore

    Assembly: DevExpress.ExpressApp.EFCore.v25.2.dll

    NuGet Package: DevExpress.ExpressApp.EFCore

    Declaration

    [DefaultValue(OptimisticLockDetection.AllFields)]
    public OptimisticLockDetection OptimisticLockDetection { get; set; }

    Property Value

    Type Default Description
    OptimisticLockDetection AllFields

    A conflict detection strategy.

    Remarks

    For detailed information, refer to the following topic: Optimistic Locking (Concurrency Control in EF Core).

    See Also