Method ValidateByDefaultRuleset
- Namespace
- Innova.Data.Validation
- Assembly
- Innova.Data.dll
ValidateByDefaultRuleset<T>(T, string)
Validates the specified entity using the default validation rule set and the specified property name.
Task<ValidationResult> ValidateByDefaultRuleset<T>(T entity, string propertyName = null)
Parameters
entity
TThe entity to be validated.
propertyName
stringThe name of the property to be validated.
Returns
- Task<ValidationResult>
The validation result.
Type Parameters
T
The type of the entity to be validated.