ICustomValidate.cs 526 B

123456789101112131415
  1. namespace Abp.Runtime.Validation
  2. {
  3. /// <summary>
  4. /// Defines interface that must be implemented by classes those must be validated with custom rules.
  5. /// So, implementing class can define its own validation logic.
  6. /// </summary>
  7. public interface ICustomValidate
  8. {
  9. /// <summary>
  10. /// This method is used to validate the object.
  11. /// </summary>
  12. /// <param name="context">Validation context.</param>
  13. void AddValidationErrors(CustomValidationContext context);
  14. }
  15. }