Welcome to MSDN Blogs Sign in | Join | Help

Validation Application Block in the January 2007 CTP

Our team is hard at work putting the finishing touches on the January 2007 CTP of Enterprise Library 3.0. This new preview release will be available on our community site any day now, but in the meantime I wanted to tease you a bit by showing you a few things that will be available in this release of the newest member of the EntLib gang, the Validation Application Block:

Validator Library: We're very close to finishing all of the validators described in my earlier post. There are still a few rough edges we'll need to smooth out after this CTP, but overall this is a much more complete validator library, so you should be able to try out some much more interesting and realistic validation scenarios.

Configuration Tool Support. As with the previous CTP, you can attach validators to objects using either attributes or configuration. But configuration is so much more fun now that the block works in the tool!

 

ASP.NET Integration: Validating your business objects from ASP.NET pages is now essentially a code-free experience. The January 2007 CTP includes a "PropertyProxyValidator" control, which locates the validation rules defined on a object property (in either attributes or configuration) and uses this to validate data in a control.

WinForms Integration: In addition to the ASP.NET integration, we have a very similar story for Windows Forms integration. The new ValidationProvider extender control lets you specify which object is supplying the validation rules, and each control can be attached to the validators from a specific property. The ValidationProvider also integrates with the ErrorProvider control, allowing you to build highly festive forms with lots of blinky things.

QuickStarts and Documentation: While the code and unit tests are all you hard-core coders need, we have a couple of QuickStarts and an early draft of the documentation which should make it a bit easier for the rest of us to figure out what this block is all about.

I hope this gives you an idea of what to expect - we're working hard to get the next CTP out to you very soon, and we look forward to hearing your thoughts once you've had a change to play with it for yourselves.

Published Wednesday, January 17, 2007 6:06 PM by tomholl

Comments

Wednesday, January 17, 2007 11:01 PM by David Hayden

# re: Validation Application Block in the January 2007 CTP

Nice... I look forward to the January CTP!

Wednesday, January 17, 2007 11:12 PM by David Hayden - Florida .NET Developer - C# and SQL Server

# Validation Application Block - ASP.NET and Winforms Integration Coolness in January 2007 CTP

Thursday, January 18, 2007 1:29 AM by Be Geek My Friend

# Cosas Interesantes 18/01/2007

Hoy en cosas interesantes: BDD RTM, .Net CLR Profiler, E2K7 Storage Calculator, XNA en Vista, Validation

Thursday, January 18, 2007 8:13 AM by Kristian

# re: Validation Application Block in the January 2007 CTP

That looks like a thing of beauty!

Thursday, January 18, 2007 12:53 PM by Vincent Bergbauer

# re: Validation Application Block in the January 2007 CTP

How difficult would it be to add the notion of severity to the validation block?

You would associate a severity level to a validator so that it can return results other than true or false.

For example, you could have severity levels of Warning, SeriousWarning, and Error.

IsValid would return false if the severity is Error, and true otherwise.

This would allow building applications that display different user feedbacks for "hard" rules and "soft" rules. This would be very useful for scientific and engineering applications where many business rules are just heuristics: you want to attract the attention of the user to the fact that the data she entered may be outside of the known bounds of validity of a model, but she may know better.

Thursday, January 18, 2007 2:09 PM by tomholl

# re: Validation Application Block in the January 2007 CTP

Hi Vincent -

Actually we've implemented a severity mechanism, which will be included in the January CTP. Originally we were going to include a fixed list of severities, but we realized that different people would want to use them for different purposes. So in the end we decided to add a "Tag" property to each validator. This is a string property which lets you use whatever severity taxonomy that you wish. The ValidationResults class has been extended to include a "filter by tag" capability, so you can easily take a ValidationResults class and ask it for all of the results tagged with "Warning", "Critical" etc.

Thursday, January 18, 2007 3:31 PM by Vincent Bergbauer

# re: Validation Application Block in the January 2007 CTP

That's great news! Now I am really impatient to see that CTP...

Friday, January 19, 2007 9:30 AM by Martin Bennedik

# re: Validation Application Block in the January 2007 CTP

Will there be WPF integration, too?

Friday, January 19, 2007 12:22 PM by tomholl

# re: Validation Application Block in the January 2007 CTP

Hi Martin -

Ultimately, yes - we've done a proof-of-concept and we believe we know how to implement this. However we are very pressed for time, so we won't necessarily get to include the WPF integration in the official 3.0 release. If this happens, we'd most likely ship the WPF integration as a separate extension after the release.

Tom

Friday, January 19, 2007 8:33 PM by Tom Hollander's blog

# Just Released! Enterprise Library 3.0 January 2007 CTP

The second CTP of Enterprise Library 3.0 is now available to download on our CodePlex community site

Saturday, January 20, 2007 6:19 AM by El Bruno

# Just Released! Enterprise Library 3.0 January 2007 CTP

Buenas buenas news ... :D Just Released! Enterprise Library 3.0 January 2007 CTP The second CTP of Enterprise

Saturday, January 20, 2007 6:19 AM by El Bruno

# Just Released! Enterprise Library 3.0 January 2007 CTP

Buenas buenas news ... :D Just Released! Enterprise Library 3.0 January 2007 CTP The second CTP of Enterprise

Saturday, January 20, 2007 8:20 AM by CoqBlog

# Enterprise Library 3.0 : CTP de Janvier 2007 disponible

Et voici la seconde CTP de l'Enterprise Library 3.0. Au menu, pas mal de changements , notamment au niveau

Saturday, January 20, 2007 11:06 AM by bkchung's WebLog

# Enterprise Library 1월 CTP

Tom Hollander's blog Just Released! Enterprise Library 3.0 January 2007 CTP 엔터프라이즈 라이브러리의 1월 CTP가 공개되었습니다.

Monday, January 22, 2007 9:06 AM by JrzyShr Dev Guy

# Enterprise Library 3.0 January 2007 CTP Now Available

Via Tom Hollander ... The second CTP of Enterprise Library 3.0 is now available to download on our CodePlex

Wednesday, January 24, 2007 11:54 AM by David Hayden [MVP C#]

# Validation Application Block Presentation and New Features - Enterprise Library 3.0

Validation Application Block Presentation and New Features - Enterprise Library 3.0 by David Hayden I

Saturday, February 10, 2007 4:09 PM by remark

# A little more validation

Version 3.0 of the Enterprise Library contains a Validator Block - there’s a CTP here.  Looking at the details on Tom Hollander’s blog, this block has the closest functionality to nspectre of any framework I’ve come across...

Thursday, March 08, 2007 7:00 PM by RK Desai

# re: Validation Application Block in the January 2007 CTP

How should I perform validation against 'Grid' in window?

Monday, March 12, 2007 8:39 PM by Tim

# re: Validation Application Block in the January 2007 CTP

Yes, It may create a huge problem I guess

Tuesday, March 13, 2007 2:02 AM by Dr Jean Guy

# re: Validation Application Block in the January 2007 CTP

Even I am wondering how to hook up validation against Grid Column!!

Anyone has answer?

Tuesday, March 13, 2007 2:09 AM by RK Desai

# re: Validation Application Block in the January 2007 CTP

No possitive response found!!

Have to wait till entlib get released?

New Comments to this post are disabled
 
Page view tracker