| SaveRequestHandlerBase(…) |
Abstract base class for save request handlers that share state and mode neutral helper methods between synchronous and asynchronous save request handlers. |
| concurrencyVersion |
Gets the concurrency version used for the update operation, when the row implements IConcurrencyVersionRow. It is the value sent by the client when present, otherwise the value loaded from the database. |
| virtual CaptureConcurrencyVersion() |
Captures the concurrency version used for the update, if the row implements IConcurrencyVersionRow, before editable field validation clears non editable assignments. The value sent by the client is used when present, otherwise the value loaded from the database. The captured value is later used to append the version to the update's WHERE clause. |
| virtual ClearNonTableAssignments() |
Clears assignment for fields that are marked as non table field, e.g. fields that are not mapped, view, expression etc. |
| virtual CreateFormValidationOptions(…) |
Creates the options the row is validated by a form with: the values of its fields by the names of the properties of the form, of the request or else of the old row, for the conditions of the form, only checking the fields of the request on an update, like the required fields are. |
| virtual CreateValidationContext(…) |
Creates the context the validation rules of a field are checked in, of the row, with the field as its member, and the text key of the field, which the implied text keys of the messages of its rules start with. |
| virtual CreateValidationServices() |
Creates the services of the context the validation rules are checked in: the connection in the transaction of the handler, the localizer and the context of the request, the unit of work and the handler itself, then the services of the request, when the request context gives them, see IServiceProviderAccessor. |
| virtual FormValidationError(…) |
Creates the error of a form validation failure, for the field of the row. |
| virtual GetBehaviors() |
Gets the list of save behaviors. |
| virtual GetDisplayOrderFilter() |
Gets the display order filter for current group, if the entity implements IDisplayOrderRow interface |
| virtual GetEditableFields(…) |
Gets the list of editable fields. These are fields that have Insertable (if Create), or Updatable (if Update) flags, and have the insert or update permission based on the type of the current operation. |
| GetFieldValidations() |
Gets the assigned fields that have validation rules, with their rules and the context to check them in. |
| virtual GetRequestEntityId() |
Gets the id of the entity targeted by the current request, converted to the value type of the row's id field. Falls back to the row's own id when the request does not carry one. Used both for loading the previous entity and for building the error returned when it cannot be loaded, so that a caller cannot distinguish a missing record from one they are not allowed to touch. |
| virtual GetRequiredFields(…) |
Gets the list of required fields based on editable list, and NotNull |
| virtual GetValidationForm() |
Gets the form the row is also validated by, see FormValidationAttribute: the one of the handler, else the one of the row, or null for none. It can be overridden to choose one, e.g. by what is saved, when the entity has more than one form. |
| virtual HandleNonEditable(…) |
Handles assignment to a non-editable field. If the field did not change in an update operation, it will be ignored by clearing the assignment. For non-table fields it will also be ignored. |
| virtual InvalidateCacheOnCommit() |
Attaches an handler to unit of work's OnCommit event to invalidate the cache items related to this row's cache group |
| virtual SetDefaultValue(…) |
Sets the default value (DefaultValueAttribute) for the field |
| virtual SetDefaultValues() |
Sets the default values for all fields (DefaultValueAttribute) |
| virtual SetTrimToEmptyFields() |
Sets values for TrimToEmpty fields. |
| virtual ValidateAndClearIdField() |
Validates and clears the ID field |
| virtual ValidateEditable() |
Validates editable fields. |
| virtual ValidateEditableFields(…) |
Validates editable fields, e.g. checks if the assigned fields are all in the editable set. Calls HandleNonEditable if not. |
| virtual ValidateIsActive() |
Validates that record is not soft deleted |
| virtual ValidatePermissions() |
Validates user permissions by checking InsertPermissionAttribute and UpdatePermissionAttribute, and ModifyPermissionAttribute or ReadPermissionAttribute if others are not found. |
| virtual ValidateRequired(…) |
Validates required fields |
| virtual ValidateRequiredWhen() |
Validates the fields of the row that are required by their RequiredWhenAttributes, which, unlike a RequiredAttribute of a row, are checked on the server too, as the conditions are not something the database can tell. Like the required fields and the validation by a form, an update only checks the fields it has, with the conditions reading the old values of the ones it doesn't, and a field the form hides or makes read only by the attributes of the row is not checked. |
| static FieldValidationError(…) |
Creates the error of a field whose value is not valid by one of its rules. |