(X) Hide this Join a live webcast on October 14th, 10:00 am PDT: 'MEF: Overview of the Managed Extensibility Framework in Silverlight 4' by Gill Cleeren
Learn More | Sign Up | More Webinars by SilverlightShow

Recommended

Skip Navigation LinksHome / News / View News

RIA Services Validation: Providing ValidationContext

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Oct 27, 2010
(0 votes)
In this post, Jeff Handley descusses the purpose of ValidationContext, what types of context it can provide, and how it integrates with RIA Services.

Source: Jeff Handley's Blog

Although ValidationContext exists within the System.ComponentModel.DataAnnotations assembly in both .NET 4.0+ and Silverlight 3+, the class was introduced by the RIA Services team. While designing the RIA Services validation system, we considered scenarios where validation logic is based on factors outside the validation method itself. This can range from the user’s settings to UI state to other records within the system. In addition to the object and property a validator is being executed against, validators much be able to reach back into the system to extract whatever data is needed.

Follow us on twitterWe tweet all news and content updates - follow us on Twitter! 

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 2 and 1 and type the answer here: