0 out of 3 rated this helpful - Rate this topic

System.ComponentModel.DataAnnotations Namespace

Updated: July 2008

The System.ComponentModel.DataAnnotations namespace provides attribute classes that are used to define metadata for ASP.NET Dynamic Data controls.

  Class Description
Public class AssociatedMetadataTypeTypeDescriptionProvider Extends the metadata information for a class by adding attributes and property information that is defined in an associated class.
Public class DataTypeAttribute Specifies the name of an additional type to associate with a data field.
Public class DisplayColumnAttribute Specifies the column that is displayed in the referred table as a foreign-key column.
Public class DisplayFormatAttribute Specifies how data fields are displayed and formatted by ASP.NET Dynamic Data.
Public class MetadataTypeAttribute Specifies the metadata class to associate with a data model class.
Public class RangeAttribute Specifies the numeric range constraints for the value of a data field in Dynamic Data.
Public class RegularExpressionAttribute Specifies that a data field value in ASP.NET Dynamic Data must match the specified regular expression.
Public class RequiredAttribute Specifies that a data field value is required.
Public class ScaffoldColumnAttribute Specifies whether a column is exposed by the scaffolding mechanism.
Public class ScaffoldTableAttribute Specifies whether a class or data table uses scaffolding.
Public class StringLengthAttribute Specifies the maximum length of characters that are allowed in a data field.
Public class UIHintAttribute Specifies the template or user-defined control Dynamic Data uses to display a data field.
Public class ValidationAttribute Base class for all validation attributes.
Public class ValidationException Represents the exception that occurs during validation of a data field when the ValidationAttribute class is used.
  Enumeration Description
Public enumeration DataType Represents an enumeration of the data types associated with data fields and parameters.

Date

History

Reason

July 2008

Added topic for new namespace.

SP1 feature change.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ