ValidationSide enumeration
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Where a validation rule is checked, see Side.
public enum ValidationSide
Values
| name | value | description |
|---|---|---|
| Both | 0 |
By the forms and on the server, which is the default. |
| Client | 1 |
Only by the forms, e.g. a hint for the user that the server doesn't need to enforce. |
| Server | 2 |
Only on the server, e.g. a rule that needs the database. |
See Also
- Source: ValidationSide.cs