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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.