Dela via


Microsoft.AspNetCore.Mvc.DataAnnotations Namespace

Provides types that discover model metadata and implement validation using System.ComponentModel.DataAnnotations.

Classes

AttributeAdapterBase<TAttribute>

An abstract subclass of ValidationAttributeAdapter<TAttribute> which wraps up all the required interfaces for the adapters.

MvcDataAnnotationsLocalizationOptions

Provides programmatic configuration for DataAnnotations localization in the MVC framework.

RequiredAttributeAdapter

AttributeAdapterBase<TAttribute> for RequiredAttribute.

ValidationAttributeAdapter<TAttribute>

An implementation of IClientModelValidator which understands data annotation attributes.

ValidationAttributeAdapterProvider

Creates an IAttributeAdapter for the given attribute.

ValidationProviderAttribute

Abstract class for grouping attributes of type ValidationAttribute into one Attribute

Interfaces

IAttributeAdapter

Interface so that adapters provide their relevant values to error messages.

IValidationAttributeAdapterProvider

Provider for supplying IAttributeAdapter's.

Remarks

For an introduction to validation, Model validation.