Table of Contents

Method ValidateByDefaultRuleset

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

ValidateByDefaultRuleset<TEntity>(TEntity, string)

Validates the specified entity property using the default validation ruleset.

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

Parameters

entity TEntity

The entity to validate.

propertyName string

The name of the property to validate.

Returns

Task<ValidationResult>

The validation result.

Type Parameters

TEntity

The type of entity to validate.