Posted by: rcosic | 05/11/2008

Data Validation

I probably won’t resist to create a session about it, because recently I had request to investigate it. What I had in mind is to sort out different kinds of validation mechanisms used to verify data in different layers and platforms.

I would start with the elemental data verifications as part of UI layer – starting with “vanilla” WinForms app, then switch to ASP.NET, following with client-side scripting code, and end with WPF (generally, XAML).

Then, I will try to explain different data storage mechanisms to validate data, including relational integrity, triggers, rules, etc. XML-based documents can be also validated against XSD schema, so I would endeavor also this stuff.

The most powerful part would be business rules validation, or business layer validation mechanisms, as I’ve already pay attention to it in my first session about C# Business Objects.
There should be talks about encapsulating business rules validation into business object, via CSLA framework, and then, via Validation Application Block (as part of Microsoft’s Enterprise Library), and variations of the solution.
Next, I would shortly present Workflow Foundation‘s RuleSets and validation rules mindset. Also, I could mention Microsoft Business Rules Framework, which ships as a component of BizTalk Server.

All together, it would be good basis for decision making about why, where, when and how to put validation of data in action.

Wish me luck and good faith in doing this!

Kind regards,
Ratko.

Potential sources:

http://en.wikipedia.org/wiki/Business_rules
http://msdn.microsoft.com/en-us/library/microsoft.ruleengine.aspx
http://msdn.microsoft.com/en-us/library/system.workflow.activities.rules.aspx
http://msdn.microsoft.com/en-us/library/ee1hzekz.aspx
http://blogs.msdn.com/wpfsdk/archive/2007/10/02/data-validation-in-3-5.aspx
http://silverlight.net/blogs/jesseliberty/archive/2008/10/13/data-binding-data-validation.aspx
http://www.c-sharpcorner.com/UploadFile/kadiyalavj/Data_Validation04082008135313PM/Data_Validation.aspx
http://karlshifflett.wordpress.com/2008/04/03/wpf-sample-series-handling-and-reporting-wpf-data-binding-validation-errors-and-exceptions/
http://bloggingabout.net/blogs/joshua/archive/2005/06/14/6444.aspx
http://msdn.microsoft.com/en-us/magazine/cc164100.aspx
http://joeydotnet.com/blog/archive/2007/03/08/21.aspx
http://community.codesmithtools.com/forums/p/2442/9888.aspx
http://www.myverbaloutlet.net/2008/09/aspnet-mvc-model-and-business-rules-validation/
http://msdn.microsoft.com/en-us/library/aa561951.aspx
http://www.codeproject.com/KB/WPF/WPFBusinessAppsPartThree.aspx

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: