O'Reilly logo

Pro Visual Studio LightSwitch 2011 Development by Yann Duran, Tim Leung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  5

Validating Data

There's an old saying in IT: garbage in, garbage out. You may have heard this saying or perhaps even a stronger variation of the same adage. In essence, it means that if you enter nonsense data into a computer system, the results of any processing will also be rubbish. Any robust computer system needs to ensure that quality data is entered into the system.

Fortunately, LightSwitch allows you to apply validation and business rules in several places throughout your application. First, you can easily apply validation declaratively by using the table designer. Any screens that you create in LightSwitch will then automatically validate the data type and length of the data that you have defined. If the data length ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required