Validation always returns true if Metadata class is used

Topics: Validation Application Block
Feb 9, 2011 at 8:10 PM

Hello,

I am using WSSF 2010 and EntLib 5.0. I am using validation attributes on Data contracts. Validation returns true even when data is invalid.

I have defined validation attributes in Metadata classes as suggested in EntLib 5.0 documentation.

It seems to work if I move the attributes to the actual Data Contract instead of Metadata class.

Please advice.

Thanks.

Feb 9, 2011 at 8:48 PM

Never mind, I was missing getter setter in Metadata class.

Thanks.