System.ComponentModel.Annotations Specifies that an entity member represents a data relationship, such as a foreign key relationship. Initializes a new instance of the class. The name of the association. A comma-separated list of the property names of the key values on the side of the association. A comma-separated list of the property names of the key values on the side of the association. Gets or sets a value that indicates whether the association member represents a foreign key. true if the association represents a foreign key; otherwise, false. Gets the name of the association. The name of the association. Gets the property names of the key values on the OtherKey side of the association. A comma-separated list of the property names that represent the key values on the OtherKey side of the association. Gets a collection of individual key members that are specified in the property. A collection of individual key members that are specified in the property. Gets the property names of the key values on the ThisKey side of the association. A comma-separated list of the property names that represent the key values on the ThisKey side of the association. Gets a collection of individual key members that are specified in the property. A collection of individual key members that are specified in the property. Provides an attribute that compares two properties. Initializes a new instance of the class. The property to compare with the current property. Applies formatting to an error message, based on the data field where the error occurred. The formatted error message. The name of the field that caused the validation failure. Determines whether a specified object is valid. true if is valid; otherwise, false. The object to validate. An object that contains information about the validation request. Gets the property to compare with the current property. The other property. Gets the display name of the other property. The display name of the other property. Gets a value that indicates whether the attribute requires validation context. true if the attribute requires validation context; otherwise, false. Specifies that a property participates in optimistic concurrency checks. Initializes a new instance of the class. Specifies that a data field value is a credit card number. Initializes a new instance of the class. Determines whether the specified credit card number is valid. true if the credit card number is valid; otherwise, false. The value to validate. Specifies a custom validation method that is used to validate a property or class instance. Initializes a new instance of the class. The type that contains the method that performs custom validation. The method that performs custom validation. Formats a validation error message. An instance of the formatted error message. The name to include in the formatted message. Gets the validation method. The name of the validation method. Gets the type that performs custom validation. The type that performs custom validation. Represents an enumeration of the data types associated with data fields and parameters. Represents a credit card number. Represents a currency value. Represents a custom data type. Represents a date value. Represents an instant in time, expressed as a date and time of day. Represents a continuous time during which an object exists. Represents an e-mail address. Represents an HTML file. Represents a URL to an image. Represents multi-line text. Represent a password value. Represents a phone number value. Represents a postal code. Represents text that is displayed. Represents a time value. Represents file upload data type. Represents a URL value. Specifies the name of an additional type to associate with a data field. Initializes a new instance of the class by using the specified type name. The name of the type to associate with the data field. Initializes a new instance of the class by using the specified field template name. The name of the custom field template to associate with the data field. is null or an empty string (""). Gets the name of custom field template that is associated with the data field. The name of the custom field template that is associated with the data field. Gets the type that is associated with the data field. One of the values. Gets a data-field display format. The data-field display format. Returns the name of the type that is associated with the data field. The name of the type associated with the data field. Checks that the value of the data field is valid. true always. The data field value to validate. Provides a general-purpose attribute that lets you specify localizable strings for types and members of entity partial classes. Initializes a new instance of the class. Gets or sets a value that indicates whether UI should be generated automatically in order to display this field. true if UI should be generated automatically to display this field; otherwise, false. An attempt was made to get the property value before it was set. Gets or sets a value that indicates whether filtering UI is automatically displayed for this field. true if UI should be generated automatically to display filtering for this field; otherwise, false. An attempt was made to get the property value before it was set. Gets or sets a value that is used to display a description in the UI. The value that is used to display a description in the UI. Returns the value of the property. The value of if the property has been initialized; otherwise, null. Returns a value that indicates whether UI should be generated automatically in order to display filtering for this field. The value of if the property has been initialized; otherwise, null. Returns the value of the property. The localized description, if the has been specified and the property represents a resource key; otherwise, the non-localized value of the property. The property and the property are initialized, but a public static property that has a name that matches the value could not be found for the property. Returns the value of the property. A value that will be used for grouping fields in the UI, if has been initialized; otherwise, null. If the property has been specified and the property represents a resource key, a localized string is returned; otherwise, a non-localized string is returned. Returns a value that is used for field display in the UI. The localized string for the property, if the property has been specified and the property represents a resource key; otherwise, the non-localized value of the property. The property and the property are initialized, but a public static property that has a name that matches the value could not be found for the property. Returns the value of the property. The value of the property, if it has been set; otherwise, null. Returns the value of the property. Gets the localized string for the property if the property has been specified and if the property represents a resource key; otherwise, the non-localized value of the property. Returns the value of the property. The localized string for the property if the property has been specified and if the property represents a resource key; otherwise, the non-localized value of the value property. Gets or sets a value that is used to group fields in the UI. A value that is used to group fields in the UI. Gets or sets a value that is used for display in the UI. A value that is used for display in the UI. Gets or sets the order weight of the column. The order weight of the column. Gets or sets a value that will be used to set the watermark for prompts in the UI. A value that will be used to display a watermark in the UI. Gets or sets the type that contains the resources for the , , , and properties. The type of the resource that contains the , , , and properties. Gets or sets a value that is used for the grid column label. A value that is for the grid column label. Specifies the column that is displayed in the referred table as a foreign-key column. Initializes a new instance of the class by using the specified column. The name of the column to use as the display column. Initializes a new instance of the class by using the specified display and sort columns. The name of the column to use as the display column. The name of the column to use for sorting. Initializes a new instance of the class by using the specified display column, and the specified sort column and sort order. The name of the column to use as the display column. The name of the column to use for sorting. true to sort in descending order; otherwise, false. The default is false. Gets the name of the column to use as the display field. The name of the display column. Gets the name of the column to use for sorting. The name of the sort column. Gets a value that indicates whether to sort in descending or ascending order. true if the column will be sorted in descending order; otherwise, false. Specifies how data fields are displayed and formatted by ASP.NET Dynamic Data. Initializes a new instance of the class. Gets or sets a value that indicates whether the formatting string that is specified by the property is applied to the field value when the data field is in edit mode. true if the formatting string applies to the field value in edit mode; otherwise, false. The default is false. Gets or sets a value that indicates whether empty string values ("") are automatically converted to null when the data field is updated in the data source. true if empty string values are automatically converted to null; otherwise, false. The default is true. Gets or sets the display format for the field value. A formatting string that specifies the display format for the value of the data field. The default is an empty string (""), which indicates that no special formatting is applied to the field value. Gets or sets a value that indicates whether the field should be HTML-encoded. true if the field should be HTML-encoded; otherwise, false. Gets or sets the text that is displayed for a field when the field's value is null. The text that is displayed for a field when the field's value is null. The default is an empty string (""), which indicates that this property is not set. Indicates whether a data field is editable. Initializes a new instance of the class. true to specify that field is editable; otherwise, false. Gets a value that indicates whether a field is editable. true if the field is editable; otherwise, false. Gets or sets a value that indicates whether an initial value is enabled. true if an initial value is enabled; otherwise, false. Validates an email address. Initializes a new instance of the class. Determines whether the specified value matches the pattern of a valid email address. true if the specified value is valid or null; otherwise, false. The value to validate. Enables a .NET Framework enumeration to be mapped to a data column. Initializes a new instance of the class. The type of the enumeration. Gets or sets the enumeration type. The enumeration type. Checks that the value of the data field is valid. true if the data field value is valid; otherwise, false. The data field value to validate. Validates file name extensions. Initializes a new instance of the class. Gets or sets the file name extensions. The file name extensions, or the default file extensions (".png", ".jpg", ".jpeg", and ".gif") if the property is not set. Applies formatting to an error message, based on the data field where the error occurred. The formatted error message. The name of the field that caused the validation failure. Checks that the specified file name extension or extensions is valid. true if the file name extension is valid; otherwise, false. A comma delimited list of valid file extensions. Represents an attribute that is used to specify the filtering behavior for a column. Initializes a new instance of the class by using the filter UI hint. The name of the control to use for filtering. Initializes a new instance of the class by using the filter UI hint and presentation layer name. The name of the control to use for filtering. The name of the presentation layer that supports this control. Initializes a new instance of the class by using the filter UI hint, presentation layer name, and control parameters. The name of the control to use for filtering. The name of the presentation layer that supports this control. The list of parameters for the control. Gets the name/value pairs that are used as parameters in the control's constructor. The name/value pairs that are used as parameters in the control's constructor. Returns a value that indicates whether this attribute instance is equal to a specified object. True if the passed object is equal to this attribute instance; otherwise, false. The object to compare with this attribute instance. Gets the name of the control to use for filtering. The name of the control to use for filtering. Returns the hash code for this attribute instance. This attribute insatnce hash code. Gets the name of the presentation layer that supports this control. The name of the presentation layer that supports this control. Provides a way for an object to be invalidated. Determines whether the specified object is valid. A collection that holds failed-validation information. The validation context. Denotes one or more properties that uniquely identify an entity. Initializes a new instance of the class. Specifies the maximum length of array or string data allowed in a property. Initializes a new instance of the class. Initializes a new instance of the class based on the parameter. The maximum allowable length of array or string data. Applies formatting to a specified error message. A localized string to describe the maximum acceptable length. The name to include in the formatted string. Determines whether a specified object is valid. true if the value is null, or if the value is less than or equal to the specified maximum length; otherwise, false. The object to validate. Length is zero or less than negative one. Gets the maximum allowable length of the array or string data. The maximum allowable length of the array or string data. Specifies the minimum length of array or string data allowed in a property. Initializes a new instance of the class. The length of the array or string data. Applies formatting to a specified error message. A localized string to describe the minimum acceptable length. The name to include in the formatted string. Determines whether a specified object is valid. true if the specified object is valid; otherwise, false. The object to validate. Gets or sets the minimum allowable length of the array or string data. The minimum allowable length of the array or string data. Specifies that a data field value is a well-formed phone number using a regular expression for phone numbers. Initializes a new instance of the class. Determines whether the specified phone number is in a valid phone number format. true if the phone number is valid; otherwise, false. The value to validate. Specifies the numeric range constraints for the value of a data field. Initializes a new instance of the class by using the specified minimum and maximum values. Specifies the minimum value allowed for the data field value. Specifies the maximum value allowed for the data field value. Initializes a new instance of the class by using the specified minimum and maximum values. Specifies the minimum value allowed for the data field value. Specifies the maximum value allowed for the data field value. Initializes a new instance of the class by using the specified minimum and maximum values and the specific type. Specifies the type of the object to test. Specifies the minimum value allowed for the data field value. Specifies the maximum value allowed for the data field value. is null. Formats the error message that is displayed when range validation fails. The formatted error message. The name of the field that caused the validation failure. Checks that the value of the data field is in the specified range. true if the specified value is in the range; otherwise, false. The data field value to validate. The data field value was outside the allowed range. Gets the maximum allowed field value. The maximum value that is allowed for the data field. Gets the minimum allowed field value. The minimu value that is allowed for the data field. Gets the type of the data field whose value must be validated. The type of the data field whose value must be validated. Specifies that a data field value in ASP.NET Dynamic Data must match the specified regular expression. Initializes a new instance of the class. The regular expression that is used to validate the data field value. is null. Formats the error message to display if the regular expression validation fails. The formatted error message. The name of the field that caused the validation failure. Checks whether the value entered by the user matches the regular expression pattern. true if validation is successful; otherwise, false. The data field value to validate. The data field value did not match the regular expression pattern. Gets the regular expression pattern. The pattern to match. Specifies that a data field value is required. Initializes a new instance of the class. Gets or sets a value that indicates whether an empty string is allowed. true if an empty string is allowed; otherwise, false. The default value is false. Checks that the value of the required data field is not empty. true if validation is successful; otherwise, false. The data field value to validate. The data field value was null. Specifies whether a class or data column uses scaffolding. Initializes a new instance of using the property. The value that specifies whether scaffolding is enabled. Gets or sets the value that specifies whether scaffolding is enabled. true, if scaffolding is enabled; otherwise false. Specifies the minimum and maximum length of characters that are allowed in a data field. Initializes a new instance of the class by using a specified maximum length. The maximum length of a string. Applies formatting to a specified error message. The formatted error message. The name of the field that caused the validation failure. is negative. -or- is less than . Determines whether a specified object is valid. true if the specified object is valid; otherwise, false. The object to validate. is negative.-or- is less than . Gets or sets the maximum length of a string. The maximum length a string. Gets or sets the minimum length of a string. The minimum length of a string. Specifies the data type of the column as a row version. Initializes a new instance of the class. Specifies the template or user control that Dynamic Data uses to display a data field. Initializes a new instance of the class by using a specified user control. The user control to use to display the data field. Initializes a new instance of the class using the specified user control and specified presentation layer. The user control (field template) to use to display the data field. The presentation layer that uses the class. Can be set to "HTML", "Silverlight", "WPF", or "WinForms". Initializes a new instance of the class by using the specified user control, presentation layer, and control parameters. The user control (field template) to use to display the data field. The presentation layer that uses the class. Can be set to "HTML", "Silverlight", "WPF", or "WinForms". The object to use to retrieve values from any data sources. is null or it is a constraint key.-or-The value of is not a string. Gets or sets the object to use to retrieve values from any data source. A collection of key/value pairs. Gets a value that indicates whether this instance is equal to the specified object. true if the specified object is equal to this instance; otherwise, false. The object to compare with this instance, or a null reference. Gets the hash code for the current instance of the attribute. The attribute instance hash code. Gets or sets the presentation layer that uses the class. The presentation layer that is used by this class. Gets or sets the name of the field template to use to display the data field. The name of the field template that displays the data field. Provides URL validation. Initializes a new instance of the class. Validates the format of the specified URL. true if the URL format is valid or null; otherwise, false. The URL to validate. Serves as the base class for all validation attributes. The and properties for localized error message are set at the same time that the non-localized property error message is set. Initializes a new instance of the class. Initializes a new instance of the class by using the function that enables access to validation resources. The function that enables access to validation resources. is null. Initializes a new instance of the class by using the error message to associate with a validation control. The error message to associate with a validation control. Gets or sets an error message to associate with a validation control if validation fails. The error message that is associated with the validation control. Gets or sets the error message resource name to use in order to look up the property value if validation fails. The error message resource that is associated with a validation control. Gets or sets the resource type to use for error-message lookup if validation fails. The type of error message that is associated with a validation control. Gets the localized validation error message. The localized validation error message. Applies formatting to an error message, based on the data field where the error occurred. An instance of the formatted error message. The name to include in the formatted message. Checks whether the specified value is valid with respect to the current validation attribute. An instance of the class. The value to validate. The context information about the validation operation. Determines whether the specified value of the object is valid. true if the specified value is valid; otherwise, false. The value of the object to validate. Validates the specified value with respect to the current validation attribute. An instance of the class. The value to validate. The context information about the validation operation. Gets a value that indicates whether the attribute requires validation context. true if the attribute requires validation context; otherwise, false. Validates the specified object. The object to validate. The object that describes the context where the validation checks are performed. This parameter cannot be null. Validation failed. Validates the specified object. The value of the object to validate. The name to include in the error message. is not valid. Describes the context in which a validation check is performed. Initializes a new instance of the class using the specified object instance The object instance to validate. It cannot be null. Initializes a new instance of the class using the specified object and an optional property bag. The object instance to validate. It cannot be null An optional set of key/value pairs to make available to consumers. Initializes a new instance of the class using the service provider and dictionary of service consumers. The object to validate. This parameter is required. The object that implements the interface. This parameter is optional. A dictionary of key/value pairs to make available to the service consumers. This parameter is optional. Gets or sets the name of the member to validate. The name of the member to validate. Returns the service that provides custom validation. An instance of the service, or null if the service is not available. The type of the service to use for validation. Initializes the using a service provider that can return service instances by type when GetService is called. The service provider. Gets the dictionary of key/value pairs that is associated with this context. The dictionary of the key/value pairs for this context. Gets or sets the name of the member to validate. The name of the member to validate. Gets the object to validate. The object to validate. Gets the type of the object to validate. The type of the object to validate. Represents the exception that occurs during validation of a data field when the class is used. Initializes a new instance of the class using an error message generated by the system. Initializes a new instance of the class by using a validation result, a validation attribute, and the value of the current exception. The list of validation results. The attribute that caused the current exception. The value of the object that caused the attribute to trigger the validation error. Initializes a new instance of the class using a specified error message. A specified message that states the error. Initializes a new instance of the class using a specified error message, a validation attribute, and the value of the current exception. The message that states the error. The attribute that caused the current exception. The value of the object that caused the attribute to trigger validation error. Initializes a new instance of the class using a specified error message and a collection of inner exception instances. The error message. The collection of validation exceptions. Gets the instance of the class that triggered this exception. An instance of the validation attribute type that triggered this exception. Gets the instance that describes the validation error. The instance that describes the validation error. Gets the value of the object that causes the class to trigger this exception. The value of the object that caused the class to trigger the validation error. Represents a container for the results of a validation request. Initializes a new instance of the class by using a object. The validation result object. Initializes a new instance of the class by using an error message. The error message. Initializes a new instance of the class by using an error message and a list of members that have validation errors. The error message. The list of member names that have validation errors. Gets the error message for the validation. The error message for the validation. Gets the collection of member names that indicate which fields have validation errors. The collection of member names that indicate which fields have validation errors. Represents the success of the validation (true if validation was successful; otherwise, false). Returns a string representation of the current validation result. The current validation result. Defines a helper class that can be used to validate objects, properties, and methods when it is included in their associated attributes. Determines whether the specified object is valid using the validation context and validation results collection. true if the object validates; otherwise, false. The object to validate. The context that describes the object to validate. A collection to hold each failed validation. is null. Determines whether the specified object is valid using the validation context, validation results collection, and a value that specifies whether to validate all properties. true if the object validates; otherwise, false. The object to validate. The context that describes the object to validate. A collection to hold each failed validation. true to validate all properties; if false, only required attributes are validated.. is null. Validates the property. true if the property validates; otherwise, false. The value to validate. The context that describes the property to validate. A collection to hold each failed validation. cannot be assigned to the property.-or-is null. Returns a value that indicates whether the specified value is valid with the specified attributes. true if the object validates; otherwise, false. The value to validate. The context that describes the object to validate. A collection to hold failed validations. The validation attributes. Determines whether the specified object is valid using the validation context. The object to validate. The context that describes the object to validate. The object is not valid. is null. Determines whether the specified object is valid using the validation context, and a value that specifies whether to validate all properties. The object to validate. The context that describes the object to validate. true to validate all properties; otherwise, false. is not valid. is null. Validates the property. The value to validate. The context that describes the property to validate. cannot be assigned to the property. The parameter is not valid. Validates the specified attributes. The value to validate. The context that describes the object to validate. The validation attributes. The parameter is null. The parameter does not validate with the parameter. Represents the database column that a property is mapped to. Initializes a new instance of the class. Initializes a new instance of the class. The name of the column the property is mapped to. Gets the name of the column the property is mapped to. The name of the column the property is mapped to. Gets or sets the zero-based order of the column the property is mapped to. The order of the column. Gets or sets the database provider specific data type of the column the property is mapped to. The database provider specific data type of the column the 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. Initializes a new instance of the class. Specifies how the database generates values for a property. Initializes a new instance of the class. The database generated option. Gets or sets the pattern used to generate values for the property in the database. The database generated option. Represents the pattern used to generate values for a property in the database. The database generates a value when a row is inserted or updated. The database generates a value when a row is inserted. The database does not generate values. Denotes a property used as a foreign key in a relationship. The annotation may be placed on the foreign key property and specify the associated navigation property name, or placed on a navigation property and specify the associated foreign key name. Initializes a new instance of the class. If you add the ForeigKey attribute to a foreign key property, you should specify the name of the associated navigation property. If you add the ForeigKey attribute to a navigation property, you should specify the name of the associated foreign key(s). If a navigation property has multiple foreign keys, use comma to separate the list of foreign key names. For more information, see Code First Data Annotations. If you add the ForeigKey attribute to a foreign key property, you should specify the name of the associated navigation property. If you add the ForeigKey attribute to a navigation property, you should specify the name of the associated foreign key(s). If a navigation property has multiple foreign keys, use comma to separate the list of foreign key names. For more information, see Code First Data Annotations. The name of the associated navigation property or the associated foreign key property. Specifies the inverse of a navigation property that represents the other end of the same relationship. Initializes a new instance of the class using the specified property. The navigation property representing the other end of the same relationship. Gets the navigation property representing the other end of the same relationship. The property of the attribute. Denotes that a property or class should be excluded from database mapping. Initializes a new instance of the class. Specifies the database table that a class is mapped to. Initializes a new instance of the class using the specified name of the table. The name of the table the class is mapped to. Gets the name of the table the class is mapped to. The name of the table the class is mapped to. Gets or sets the schema of the table the class is mapped to. The schema of the table the class is mapped to.