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.
ValidationResult ValidateByDefaultRuleset<T>(T entity, string propertyName)
Parameters
entity
TThe entity to be validated.
propertyName
stringThe name of the property to be validated.
Returns
- ValidationResult
The validation result.
Type Parameters
T
The type of the entity to be validated.
ValidateByDefaultRuleset<TEntity>(TEntity)
Validates the specified entity using the default validation rule set.
Task<ValidationResult> ValidateByDefaultRuleset<TEntity>(TEntity entity)
Parameters
entity
TEntityThe entity to be validated.
Returns
- Task<ValidationResult>
A task that represents the asynchronous validation operation.
Type Parameters
TEntity
The type of the entity to be validated.