Table of Contents

Interface IBuilderWithPropValidator<TObj, TOptions, T>

Namespace
ExpressValidator
Assembly
ExpressValidator.dll

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

public interface IBuilderWithPropValidator<TObj, TOptions, T>

Type Parameters

TObj

A type of object to validate.

TOptions

A type of the options to use when creating an object that implements the IExpressValidator<TObj>.

T

A type of the current property.

Methods

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

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

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

Parameters

action Action<TOptions, IRuleBuilderOptions<T, T>>

Action to add validators

Returns

ExpressValidatorBuilder<TObj, TOptions>

<ExpressValidatorBuilder<TObj>>

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

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

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

Parameters

action Action<TOptions, IRuleBuilderOptions<T, T>>

Action to add validators

Returns

ExpressValidatorBuilder<TObj, TOptions>

<ExpressValidatorBuilder<TObj>>