Table of Contents

Interface IBuilderWithPropValidator<TObj, T>

Namespace
ExpressValidator
Assembly
ExpressValidator.dll

Represents a contract for an object that holds ExpressValidatorBuilder<TObj> along with the current property to be validated. This interface is primarily for internal use by ExpressValidator.

public interface IBuilderWithPropValidator<TObj, T>

Type Parameters

TObj

A type of object to validate.

T

A type of the current property.

Methods

WithAsyncValidation(Action<IRuleBuilderOptions<T, T>>)

Allows validators to be added to the IRuleBuilderOptions<T, T> property rule builder with possible use with async validators.

ExpressValidatorBuilder<TObj> WithAsyncValidation(Action<IRuleBuilderOptions<T, T>> action)

Parameters

action Action<IRuleBuilderOptions<T, T>>

Action to add validators

Returns

ExpressValidatorBuilder<TObj>

<ExpressValidatorBuilder<TObj>>

WithValidation(Action<IRuleBuilderOptions<T, T>>)

Allows validators to be added in the IRuleBuilderOptions<T, T> property rule builder.

ExpressValidatorBuilder<TObj> WithValidation(Action<IRuleBuilderOptions<T, T>> action)

Parameters

action Action<IRuleBuilderOptions<T, T>>

Action to add validators

Returns

ExpressValidatorBuilder<TObj>

<ExpressValidatorBuilder<TObj>>