Last post Jun 06, 2011 01:29 PM by pavanpuligandla
Jun 06, 2011 01:29 PM|pavanpuligandla|LINK
I'm using enterprise library validation blocks, and trying not to use validations in aspx pages, For that i'm having Data Domain Objects (Business Entities).. For instance in my database there is a table 'registration' with datatypes string, int, decimal,
datetime etc.. The problem is, I'm creating DTO's as per my database tables with same value types, But coming to the usage of validation block, there is no validation for INT and DATETIME types, and even NOT NULL VALIDATIOR is not working, For that everyone
are taking all string types in the classes and then using regular expression validators, this will work fine, But if i take string for an int column, validation might work but my problem is i cannot use that property globally thru my application because its
no more INT type..
Please help me out to use validation blocks appropriately for all the data types without changing..
If it is not clear, I'll definitely explain my scenario with a sample code.. Please help me out as tomorrow is the deadline unfortunately..