Skip to content

ValidateParentBehavior class

namespace: Serenity.Services   assemblySerenity.Net.Services

Validation behavior for rows that have a parent record via IParentIdRow interface.

public class ValidateParentBehavior : BaseSaveBehaviorAsync, ISaveBehaviorSync
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.
virtual OnValidateRequest(…)
override OnValidateRequestAsync(…)

Exceptions

exception condition
ArgumentNullException rowTypeRegistry or localizer is null.

Remarks

Initializes a new instance of the class.

See Also