Common Validation Rules in LightSwitch Business Applications
This sample shows how you can use common validation patterns called Regular Expressions to validate data. It also shows how you can create a reusable set of extension methods you can call from Validate methods on any of your entities.