mirror of https://github.com/abpframework/abp
parent
0e29831ad1
commit
d2e52f64f2
@ -1,20 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Volo.Abp.Validation
|
||||
{
|
||||
public interface IObjectValidator
|
||||
{
|
||||
void Validate(
|
||||
Task ValidateAsync(
|
||||
object validatingObject,
|
||||
string name = null,
|
||||
bool allowNull = false
|
||||
);
|
||||
|
||||
List<ValidationResult> GetErrors(
|
||||
Task<List<ValidationResult>> GetErrorsAsync(
|
||||
object validatingObject,
|
||||
string name = null,
|
||||
bool allowNull = false
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue