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.

ValidationResult ValidateByDefaultRuleset<T>(T entity, string propertyName)

Parameters

entity T

The entity to be validated.

propertyName string

The 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 TEntity

The 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.