Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

SUMMARY

LightSwitch implements a clear validation logic that checks all data in the screens before passing them to the application server to save. All entity properties and screen properties are checked for syntactic correctness (for example, where numbers are expected, only appropriate characters are typed in) and semantic correctness (for example, if a number must be positive, it really is). The application server checks for user permissions, and validates entity properties and entity coherence before writing it to the database.

Developers can declare property validation by setting a few properties (such as Minimum Value and Maximum Value for numeric properties), or write their own custom property validation code. Entities are validated only on the application server side, according to the Validate method you write to check them. The validation methods use builder objects to define validation messages to be displayed in application screens.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint