Print Page | Close Window

DevForce 6.0 Verification ...

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1762
Printed Date: 21-Apr-2026 at 12:19pm


Topic: DevForce 6.0 Verification ...
Posted By: as123
Subject: DevForce 6.0 Verification ...
Date Posted: 27-Apr-2010 at 5:59pm

          The Learning Resources PDF documentation for Validation, 070_Validation, is still referring to the 5.0 version (Object Mapper, VerificationSetterOptions etc.) The Release Notes say it is under construction. Is there a timeframe by which we can expect the latest documentation for the Validation process?

           Is it not possible to set Verifification Interceptor at the Model level and override it using Verification Setter Mode at the Property level? What is the equivalent in 6.0?
 
           Also, in the sample validation application, how do we avoid doing both AfterSet and Instance validation for the same property, without putting in lot of checking in each property verifier method? For example, when the Order Date < Hire Date, the same error message is shown twice (once by AfterSet and another by Instance validation).

Thanks.




Replies:
Posted By: ting
Date Posted: 28-Apr-2010 at 6:00pm
You should see significant updates to the documentation in our next release (probably late May).
 
The VerificationSetterOptions has been renamed VerifierSetterOptions.  However, this API is deprecated and we would like to remove it.  Although it was misunderstood, the only intended reason for VerifierSetterOptions was as a performance optimization, and all the logical functionality was available in VerifierExecutionModes.
 
To get the performance optimization, you would now override ValidatePropertyBeforeSet() or ValidatePropertyAfterSet() and not call the base class implementation.  You can also do this in the injected base class if you want to affect multiple types.
I need to talk with one of the architects about your last question, but I wanted to get you the other answers first so you didn't have to wait.
 


Posted By: ting
Date Posted: 10-May-2010 at 3:20pm

For the final question, we have discovered that this is a Silverlight DataGrid  bug and we're asking Microsoft about it.  DevForce is only indicating a single error, but the DataGrid displays it twice.  We have duplicated this with no DevForce code and see the same problem with the DataGrid.



Posted By: as123
Date Posted: 10-May-2010 at 3:35pm
        Thanks.


Posted By: ting
Date Posted: 17-May-2010 at 5:07pm

Ok, we're getting that last problem fixed (with the duplicate messages) for the next release (early June).  Microsoft's implementation didn't quite follow the advertised API, so we are now coding to the actual behavior instead of the documentation.




Print Page | Close Window