expressappframework-devexpress-dot-expressapp-dot-dc-bd3c7def.md
Applies to EF Core business class. Disables optimistic concurrency control.
Namespace : DevExpress.ExpressApp.DC
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, Inherited = true)]
public class OptimisticLockIgnoreAttribute :
Attribute
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Property, Inherited:=True)>
Public Class OptimisticLockIgnoreAttribute
Inherits Attribute
Use OptimisticLockgnoreAttribute to disable concurrency control in a business class or a property of an EF Core-based XAF application.
The following code snippet uses OptimisticLockIgnoreAttribute on a class level:
using Microsoft.EntityFrameworkCore;
namespace MainDemo.Module.BusinessObjects;
[OptimisticLockIgnore]
public class Department : BaseObject {
//...
}
The following code snippet uses OptimisticLockIgnoreAttribute on a property level:
using Microsoft.EntityFrameworkCore;
namespace MainDemo.Module.BusinessObjects;
public class Department : BaseObject {
//...
[OptimisticLockIgnore]
public virtual string Office { get; set; }
}
For more information about optimistic concurrency control in EF Core-based XAF applications, refer to the following topic: Optimistic Locking (Concurrency Control in EF Core).
Object Attribute OptimisticLockIgnoreAttribute
See Also