Data Annotation : Entity framework facilitate Data Annotation For validate Data before inserting in database client side and server side both.
for use of Data Annotation Two name space Require
(1) System.ComponentModel.DataAnnotions
This class hold these attributes
This class hold these attributes
for use of Data Annotation Two name space Require
(1) System.ComponentModel.DataAnnotions
This class hold these attributes
- Key
- Required
- String Length
- MinLength
- MaxLength
- TimeStamp
- ConcurrencyCheck
This class hold these attributes
- Table
- Index
- ForeignKey
- NotMapped
- InversProperty
- Column