Table of Contents

Method ValidateByDefaultRuleset

Namespace
Innova.Data.Validation
Assembly
Innova.Data.dll

ValidateByDefaultRuleset<TEntity>(TEntity)

Validates the specified entity using the default validation ruleset.

public Task<ValidationResult> ValidateByDefaultRuleset<TEntity>(TEntity entity)

Parameters

entity TEntity

The entity to validate.

Returns

Task<ValidationResult>

The validation result.

Type Parameters

TEntity

The type of entity to validate.

ValidateByDefaultRuleset<TEntity>(TEntity, string)

Validates the specified entity property using the default validation ruleset.

public ValidationResult ValidateByDefaultRuleset<TEntity>(TEntity entity, string propertyName)

Parameters

entity TEntity

The entity to validate.

propertyName string

The name of the property to validate.

Returns

ValidationResult

The validation result.

Type Parameters

TEntity

The type of entity to validate.