System.ComponentModel.DataAnnotations Namespace

 

The System.ComponentModel.DataAnnotations namespace provides attribute classes that are used to define metadata for ASP.NET MVC and ASP.NET data controls.

ClassDescription
System_CAPS_pubclassAssociatedMetadataTypeTypeDescriptionProvider

Extends the metadata information for a class by adding attributes and property information that is defined in an associated class.

System_CAPS_pubclassAssociationAttribute

Specifies that an entity member represents a data relationship, such as a foreign key relationship.

System_CAPS_pubclassBindableTypeAttribute

Specifies whether a type is typically used for binding.

System_CAPS_pubclassCompareAttribute

Provides an attribute that compares two properties.

System_CAPS_pubclassConcurrencyCheckAttribute

Specifies that a property participates in optimistic concurrency checks.

System_CAPS_pubclassCreditCardAttribute

Specifies that a data field value is a credit card number.

System_CAPS_pubclassCustomValidationAttribute

Specifies a custom validation method that is used to validate a property or class instance.

System_CAPS_pubclassDataTypeAttribute

Specifies the name of an additional type to associate with a data field.

System_CAPS_pubclassDisplayAttribute

Provides a general-purpose attribute that lets you specify localizable strings for types and members of entity partial classes.

System_CAPS_pubclassDisplayColumnAttribute

Specifies the column that is displayed in the referred table as a foreign-key column.

System_CAPS_pubclassDisplayFormatAttribute

Specifies how data fields are displayed and formatted by ASP.NET Dynamic Data.

System_CAPS_pubclassEditableAttribute

Indicates whether a data field is editable.

System_CAPS_pubclassEmailAddressAttribute

Validates an email address.

System_CAPS_pubclassEnumDataTypeAttribute

Enables a .NET Framework enumeration to be mapped to a data column.

System_CAPS_pubclassFileExtensionsAttribute

Validates file name extensions.

System_CAPS_pubclassFilterUIHintAttribute

Represents an attribute that is used to specify the filtering behavior for a column.

System_CAPS_pubclassKeyAttribute

Denotes one or more properties that uniquely identify an entity.

System_CAPS_pubclassMaxLengthAttribute

Specifies the maximum length of array or string data allowed in a property.

System_CAPS_pubclassMetadataTypeAttribute

Specifies the metadata class to associate with a data model class.

System_CAPS_pubclassMinLengthAttribute

Specifies the minimum length of array or string data allowed in a property.

System_CAPS_pubclassPhoneAttribute

Specifies that a data field value is a well-formed phone number using a regular expression for phone numbers.

System_CAPS_pubclassRangeAttribute

Specifies the numeric range constraints for the value of a data field.

System_CAPS_pubclassRegularExpressionAttribute

Specifies that a data field value in ASP.NET Dynamic Data must match the specified regular expression.

System_CAPS_pubclassRequiredAttribute

Specifies that a data field value is required.

System_CAPS_pubclassScaffoldColumnAttribute

Specifies whether a class or data column uses scaffolding.

System_CAPS_pubclassScaffoldTableAttribute

Specifies whether a class or data table uses scaffolding.

System_CAPS_pubclassStringLengthAttribute

Specifies the minimum and maximum length of characters that are allowed in a data field.

System_CAPS_pubclassTimestampAttribute

Specifies the data type of the column as a row version.

System_CAPS_pubclassUIHintAttribute

Specifies the template or user control that Dynamic Data uses to display a data field.

System_CAPS_pubclassUrlAttribute

Provides URL validation.

System_CAPS_pubclassValidationAttribute

Serves as the base class for all validation attributes.

System_CAPS_pubclassValidationContext

Describes the context in which a validation check is performed.

System_CAPS_pubclassValidationException

Represents the exception that occurs during validation of a data field when the ValidationAttribute class is used.

System_CAPS_pubclassValidationResult

Represents a container for the results of a validation request.

System_CAPS_pubclassValidator

Defines a helper class that can be used to validate objects, properties, and methods when it is included in their associated ValidationAttribute attributes.

InterfaceDescription
System_CAPS_pubinterfaceIValidatableObject

Provides a way for an object to be invalidated.

EnumerationDescription
System_CAPS_pubenumDataType

Represents an enumeration of the data types associated with data fields and parameters.

Return to top
Show: