IsValid vs IsSelfValid

IsValid vs IsSelfValid

Old forum URL: forums.lhotka.net/forums/t/7233.aspx


colemn203 posted on Monday, July 06, 2009

I have not seen this covered but here goes.


I believe that IsSelfValid means that the current object is Valid and IsValid checks both itself and any children.

If that is correct then how can IsSelfValid = True and IsValid = False when there are no children and the BrokenRulesList is empty?

 

I've regenerated my objects and have been beating my head against it off and on for a day or two.

Any insight would be awsome.

colemn203 replied on Monday, July 06, 2009

Never mind I was able to figure it out.

DocJames replied on Monday, July 06, 2009


And the answer is?

JoeFallon1 replied on Monday, July 06, 2009

You can't just pull a "Roseanne Rosannadanna" and leave us hanging like that! <g>

What was the issue?

 

 

 

colemn203 replied on Tuesday, July 07, 2009

We had pulled in the custom code from the previous objects that where using a 2.x version of CSLA and had overridden IsValid. For some reason we were not calling mybase.IsValid and where just calling IsValid.

I knew it was something dumb from the start but I overlooked it. The plus side is that I have a good understanding of the whole validation process works.

 

Copyright (c) Marimer LLC