ValidationContextExtensions class
namespace: Serenity assembly: Serenity.Net.Core
Gets what a validation rule may need from the context it is checked in, e.g. the localizer of its message, which the save handlers and the other places that check the rules give as the services of the context.
public static class ValidationContextExtensions
Public Members
| name | description |
|---|---|
| static GetConnection(…) | Gets the connection the value is saved with, e.g. in the transaction of a save handler, or null when the context has none. |
| static GetLocalizer(…) | Gets the localizer of the messages, or null when the context has none. |
| static GetPropertyValue(…) | Gets the value of another property of the object being validated, e.g. a row, for a rule on more than one field. |
See Also
- Source: ValidationContextExtensions.cs