What is the difference between data validation and validation?

My recollection from the past employer is that they distinguished between them as follows:

  • Validation is the process of validating data in a very basic sense; for example, data in a date field can be converted to a date, or that characters in a numeric field can be converted to a number of the corresponding type;
  • Validation is the process of validating typed data against some other “business rules” that you impose on your interface — for example, the Date of Birth field indicates a candidate in a certain age range.

These memories are not related to the Wikipedia article on this subject, but to the BBC BiteSize Revision Article .

So, what is the consensus: do people care about what methods and processes call when I check the Xml input, for example?

What do I do when I:

  • Make sure the date field contains characters that can be converted to C # DateTime;
  • Make sure the DateTime is in the appropriate date range that will be stored in SQL Server;
  • Make sure the date of birth indicates a customer over 18 years old, but less than 65?
+5
source share
3 answers

Okay, so I'll take this as an open invitation to think ...

, . , , a, b double, , , a/b , a DivideByZeroException , b 0.

, , , ( " " ), , , (' runtime ')

Duh. , , , , .

+1

, IE, . , , , , .

+2

, ( ), , , . , , , , , UI, -. dataannotations , - -. ; (, ), ( ).

0
source

All Articles