ValidateParentBehavior class
namespace: Serenity.Services assembly: Serenity.Net.Services
Validation behavior for rows that have a parent record via IParentIdRow interface.
public class ValidateParentBehavior : BaseSaveBehavior
| parameter | description |
|---|---|
| rowTypeRegistry | Row type registry |
| localizer | Text localizer |
Public Members
| name | description |
|---|---|
| ValidateParentBehavior(…) | Validation behavior for rows that have a parent record via IParentIdRow interface. |
| override OnValidateRequest(…) |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | rowTypeRegistry or localizer is null. |
Remarks
Initializes a new instance of the class.
See Also
- class BaseSaveBehavior
- Source: ValidateParentAttribute.cs