Skip to content

SaveRequest<TEntity> class

namespace: Serenity.Services   assembly: Serenity.Net.Services

The service model for a Save (Create / Update) service.

public class SaveRequest<TEntity> : ServiceRequest, ISaveRequest
parameter description
TEntity The type of the entity.

Public Members

name description
SaveRequest() The default constructor.
Entity { get; set; } The entity containing only the fields that should be inserted / updated. Partial patch is only possible with Row types as only it provides assignment information from the originating JSON.
EntityId { get; set; }
IgnoreConcurrencyVersion { get; set; } Gets or sets a value indicating whether the concurrency version check should be skipped for this save request. This is a server side only option and is ignored in client JSON, intended for internal services that need to update a row regardless of its version.
Localizations { get; set; } The set of localizations if translations are requested to be updated.

See Also