CHAPTER 7

image

Validating Data

An age-old problem with computer systems is this: garbage in, garbage out. When users enter incomplete or inaccurate data into a computer system, the result of any processing will be of equally poor quality. Luckily, LightSwitch provides a host of features to help keep your data clean. In this chapter, I’ll show you how to do the following:

  • create data-valuation rules by using the table designer
  • define more sophisticated rules by writing code that runs on the server
  • define screen-specific rules by writing code that runs only on the client

In this chapter, I’ll show you how to create conditional rules; for example, if ...

Get Visual Studio LightSwitch 2015, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.