Re. AddCustomRuleWithTypeCacheSample

Topics: Developer Forum
Jul 18, 2007 at 8:17 AM
Hi Simon,

I'm in the process of moving the data in my validation.xml files to a DB and then re-creating using the above example code as a guide. I assume I can just extract the data from the XML files and plonk it straight into the DB, i.e. the 'form' of the data is still the same?

Another thing:)

I've been using

IList<ValidationResult> results = PropertyValidationManager.TryValidate(entity, ruleSet, context);



to load up from validation.xml files and that seemed to work OK.

Now that I've changed to creating the rules in code my new mechanism doesn't return any validation errors when it should, is there anything else I should be doing?

I will continue checking what I've done to see if I can work it out!


- Andrew

Jul 18, 2007 at 9:41 AM
Hi Simon,

Have managed to track down the issue, so sorted now! :)


- Andrew
Jul 18, 2007 at 11:02 AM
Did u work out both issues?