System.ComponentModel.DataAnnotations Namespace
Silverlight
Provides attribute classes that are used to define metadata for entity classes.
| Class | Description | |
|---|---|---|
|
AssociationAttribute | Specifies that an entity member represents a data relationship, such as a foreign key relationship. |
|
ConcurrencyCheckAttribute | Designates that a property participates in optimistic concurrency checks. |
|
CustomValidationAttribute | Designates a customized method to execute to validate the entity member. |
|
DataTypeAttribute | Specifies the name of an additional type to associate with an entity member. |
|
DisplayAttribute | Specifies localizable strings for entity types and members that are used in the user interface. |
|
DisplayColumnAttribute | Designates the property to display, the property to use for sorting, and the sort order when a table is used as a parent table in a foreign key relationship. |
|
DisplayFormatAttribute | Specifies how data fields are displayed and formatted. |
|
EditableAttribute | Specifies whether users should be able to change the value of the entity property. |
|
EnumDataTypeAttribute | Specifies that an entity member corresponds to an enumeration type. |
|
FilterUIHintAttribute | Designates the filtering behavior for a column. |
|
KeyAttribute | Specifies one or more entity properties to use as the unique identity for the entity. |
|
RangeAttribute | Designates the minimum and maximum constraints for the associated member. |
|
RegularExpressionAttribute | Designates a regular expression to use for validation of the associated member. |
|
RequiredAttribute | Specifies that a value must be provided for a property. |
|
StringLengthAttribute | Specifies the maximum and minimum number of characters that are allowed for an entity member. |
|
TimestampAttribute | Designates a member as a time stamp value. |
|
UIHintAttribute | Designates the control and values to use to display the associated entity member. |
|
ValidationAttribute | Serves as the base class for all validation attributes. |
|
ValidationContext | Provides information about a type or member to validate. |
|
ValidationException | Represents the exception that occurred during validation of a member that is marked with a validation attribute. |
|
ValidationResult | Contains the results of a validation request. |
|
Validator | Provides members to help validate objects and members using values from the associated ValidationAttribute attribute. |
| Enumeration | Description | |
|---|---|---|
|
DataType | Represents data types that are associated with data properties. |
Community Additions
ADD
Show: