10
Reply

What is data annotation ?

Sandeep Kumar

Sandeep Kumar

8y
2.8k
0
Reply

    DataAnnotations are used to enforce validation rules for data applied to the class or member.

    Annotations are allows you to use validation rules. System.ComponentModel.DataAnnotations is the assembly name, which contains Annotations.

    DataAnnotations is a library in .NET Framework. It resides in assembly System.ComponentModel.DataAnnotations. The purpose of DataAnnotations is to custom domain entity class with attributes.

    Validation Attributes. The System.ComponentModel.DataAnnotations namespace contains the following attributes which are used to enforce validation rules for data applied to the class or member: Validation Attribute.

    Used to Enforce validation rules

    data annotation used to customise the entity classes that specify how the data is displayed and set relationships between classes.

    it is use for data validation rules for data applied to the class or member.

    DataAnnotations are used to enforce validation rules for data applied to the class or member.

    The System.ComponentModel.DataAnnotations attributes cause MVC to provide both client and server validation checks with no additional coding required by you.

    data annotation use for data validation of the application