FluentValidationExtensions Class

Summary

Fluent validations
graph BT Type-->Base0["Object"] Type["FluentValidationExtensions"] class Type type-node

Syntax

public static class FluentValidationExtensions

Attributes

Type Description
NullableContextAttribute
NullableAttribute
PublicAPIAttribute

Methods

Name Value Summary
IsOneOf<T, TProperty>(IRuleBuilder<T, TProperty>, bool, string[]) IRuleBuilderOptions<T, TProperty>
Defines a validator on the current rule builder that ensures that the specific value is one of the values given in the list.
static
IsOneOf<T, TProperty>(IRuleBuilder<T, TProperty>, string[]) IRuleBuilderOptions<T, TProperty>
Defines a validator on the current rule builder that ensures that the specific value is one of the values given in the list.
static