Table of Contents

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 T

The entity to be validated.

propertyName string

The name of the property to be validated.

Returns

Task<ValidationResult>

The validation result.

Type Parameters

T

The type of the entity to be validated.