Table of Contents

Class EntityValidationService<T, TEntityInterface>

Namespace
Innova.Data.Entity
Assembly
Innova.Data.dll

Service for entity validation.

public class EntityValidationService<T, TEntityInterface> : IEntityValidationService<T, TEntityInterface>, IEntityValidatorService where T : class where TEntityInterface : class

Type Parameters

T

The type of the entity.

TEntityInterface

The interface type of the entity.

Inheritance
EntityValidationService<T, TEntityInterface>
Implements
IEntityValidationService<T, TEntityInterface>
Extension Methods

Constructors

EntityValidationService(IEnumerable<IEntityValidator<TEntityInterface>>, IEntityServiceConfiguration<T>)

Initializes a new instance of the EntityValidationService<T, TEntityInterface> class.

Methods

IsPrimaryKeysValid(IPrimaryKey)

Checks if the primary keys are valid.

SetValidatorOnEntity(object, ValidationRuleSetEnum)

Sets the validator on the entity.

Validate(TEntityInterface, ValidationRuleSetEnum, CancellationToken)

Validates the entity.