Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

System.ComponentModel.Annotations

System Library

Author Microsoft
Version 10.0.1
Tags

Public Types

System.​ComponentModel.​DataAnnotations

Specifies a list of values that should be allowed in a property.
Extends the metadata information for a class by adding attributes and property information that is defined in an associated class.
Specifies that an entity member represents a data relationship, such as a foreign key relationship.
Specifies that a data field value is a well-formed Base64 string.
Provides an attribute that compares two properties.
Specifies that a property participates in optimistic concurrency checks.
Specifies that a data field value is a credit card number.
Specifies a custom validation method that is used to validate a property or class instance.
enum DataType
Represents an enumeration of the data types associated with data fields and parameters.
Specifies the name of an additional type to associate with a data field.
Specifies a list of values that should not be allowed in a property.
Provides a general-purpose attribute that lets you specify localizable strings for types and members of entity partial classes.
Specifies the column that is displayed in the referred table as a foreign-key column.
Specifies how data fields are displayed and formatted by ASP.NET Dynamic Data.
Indicates whether a data field is editable.
Validates an email address.
Enables a .NET enumeration to be mapped to a data column.
Validates file name extensions.
Represents an attribute that is used to specify the filtering behavior for a column.
interface IValidatableObject
Provides a way for an object to be validated.
class KeyAttribute
Denotes one or more properties that uniquely identify an entity.
Specifies the minimum and maximum length of collection/string data allowed in a property.
Specifies the maximum length of array or string data allowed in a property.
Specifies the metadata class to associate with a data model class.
Specifies the minimum length of array or string data allowed in a property.
Specifies that a data field value is a well-formed phone number.
Specifies the numeric range constraints for the value of a data field.
Specifies that a data field value in ASP.NET Dynamic Data must match the specified regular expression.
Specifies that a data field value is required.
Specifies whether a class or data column uses scaffolding.
Specifies the minimum and maximum length of characters that are allowed in a data field.
Specifies the data type of the column as a row version.
Specifies the template or user control that Dynamic Data uses to display a data field.
class UrlAttribute
Provides URL validation.
Serves as the base class for all validation attributes.
Describes the context in which a validation check is performed.
Represents the exception that occurs during validation of a data field when the <see cref="T:System.ComponentModel.DataAnnotations.ValidationAttribute" /> class is used.
Represents a container for the results of a validation request.
class Validator
Defines a helper class that can be used to validate objects, properties, and methods when it is included in their associated <see cref="T:System.ComponentModel.DataAnnotations.ValidationAttribute" /> attributes.

System.​ComponentModel.​DataAnnotations.​Schema

Represents the database column that a property is mapped to.
Denotes that the class is a complex type. Complex types are non-scalar properties of entity types that enable scalar properties to be organized within entities. Complex types do not have keys and cannot be managed by the Entity Framework apart from the parent object.
Specifies how the database generates values for a property.
Represents the pattern used to generate values for a property in the database.
Denotes a property used as a foreign key in a relationship.
Specifies the inverse of a navigation property that represents the other end of the same relationship.
Denotes that a property or class should be excluded from database mapping.
Specifies the database table that a class is mapped to.