Skip to main content
All docs
V26.1
  • WebApiOptions.UseResourceDelta Property

    Specifies the type Web API uses to track EF Core and non-persistent object changes.

    Namespace: DevExpress.ExpressApp.WebApi.Services

    Assembly: DevExpress.ExpressApp.WebApi.v26.1.dll

    Declaration

    public bool UseResourceDelta { get; set; }

    Property Value

    Type Description
    Boolean

    true to use the DevExpress.ExpressApp.WebApi.EFCore.ResourceDelta<T> type;
    false to use the Microsoft.AspNetCore.OData.Deltas.Delta<T> type.

    Remarks

    XAF Web API Service uses the DevExpress.ExpressApp.WebApi.EFCore.ResourceDelta<T> class to track changes in EF Core and non-persistent objects. Disable the UseResourceDelta property to use the standard Delta<T> class instead. In this case, some complex update scenarios, such as Deep Update, may cause runtime exceptions.

    builder.AddXafWebApi(webApiBuilder => {
        webApiBuilder.ConfigureOptions(options => {
            options.UseResourceDelta = false;
            // ... Other options
        });
    });
    
    See Also