Пример #1
0
 /// <summary>
 /// Throws an exception explaining why the save or update
 /// cannot be executed when fields are not ok to pass.
 /// </summary>
 /// <remarks>
 /// You can override this method to declare a better behavior.
 /// </remarks>
 /// <remarks>Forwards the call to <see cref="ActualValidator"/>.</remarks>
 protected virtual void OnNotValid()
 {
     ActiveRecordValidator.ThrowNotValidException(ValidationErrorMessages, PropertiesValidationErrorMessages);
 }