Untitled

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

3. what is data annotation in ASP.net core mvc?

Data annotation it is feature avaliable in the framework that adds some extra information to the data
that are used for diffirent purpose.

Data Annotation properties are divided into 3 main categories:

 Validation Attribute: used to add validation rule sets to data.


 Display Attribute: Used to specify how data from a class is displayed in the interface.
 Modelling Attribute: Used to specify the intended use of the member class and the relationship
between classes.

Effects of data annotations:

Data Annotation in Entity Framework helps you define attribute data directly in the source code seeded
from database tables and gives you control over the best user input and how defines the data displayed
on the interface.

You might also like