What are the types of annotation?
What is use of Annotation?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SUNIL GUTTAPosted Mar 13, 2014, 3:35 AM
and
system.componentmodel.annonation.schema
These are very important better try to use these while going with project .
Compare which is very important present in schema ..
Regards
Chestertonpdf ChestertonPosted Mar 12, 2014, 11:13 PM
Biswa Pujarini MohapatraPosted Feb 10, 2014, 1:01 PM
Annonation used for data validation. Inherits from system.componentmodel.annonation
ex - valid emailid, datarange
types of validation supports
custom validation
Uses a custom method for validation.
DataTypeAttribute
Specifies a particular type of data, such as e-mail address or phone number.
EnumDataTypeAttribute
Ensures that the value exists in an enumeration.
RangeAttribute
Designates minimum and maximum constraints.
RegularExpressionAttribute
Uses a regular expression to determine valid values.
RequiredAttribute
Specifies that a value must be provided.
StringLengthAttribute
Designates maximum and minimum number of characters.
ValidationAttribute
Serves as base class for validation attributes.