Data Annotation in .NET Framework

Data Annotation feature got introduced in .NET 3.5 and System.ComponentModel.DataAnnotations namespace contains the classes that are used as data attributes. We can manage the data definition in a single place and do not need re-write the same rules in multiple places using Data Annotation
Data Annotation attributes divided into three categories:
Validation Attributes:  We used validation attribute for enforce validation rules.
Display Attributes: Here we specify how data from a class /member is displayed in the UI.
Modelling Attributes: Used to specify the intended use of class member and the relationship between classes.


Data Annotation in .NET Framework Data Annotation in .NET Framework Reviewed by NEERAJ SRIVASTAVA on 1:56:00 PM Rating: 5

1 comment:

  1. I’m in reality inspired with this blog! Very clear explanation of issues is given and it is open to all and sundry. Thank you for sharing this post. That is very good


Powered by Blogger.