concept place in category silverlight
appears as: places, place, place, places

This is an excerpt from Manning's book Silverlight 4 in Action: Silverlight 4, MVVM, and WCF RIA Services.
Listing 13.8. The Person class with validation attributes in place
public class Person { [Required] [StringLength(25)] public string LastName { get; set; } [Required] [StringLength(25)] public string FirstName { get; set; } [Required] public DateTime DateOfBirth { get; set; } public bool IsRegistered { get; set; } public MaritalStatus MaritalStatus { get; set; } [Required] [StringLength(320)] [RegularExpression(@"^[a-zA-Z][\w\.&-]*[a-zA-Z0-9]@[a-zA-Z0-9] [\w\.-]*[a-zA-Z0-9]\.[a-zA-Z\.]*[a-zA-Z]$")] public string EmailAddress { get; set; } [Range(0, 20)] public int NumberOfChildren { get; set; } }
After you have the overall solution structure in place, follow the instructions in appendix A to set up the database connection and entity data model. When complete, you should have a solution with an untouched Silverlight Navigation Application template–based client and a web project with access to the AdventureWorks database via the entity data model.