Re: Validation

2014-10-08 Thread Neil Young
Greg, If you are starting new validation work I'd be taking a good look at this: https://fluentvalidation.codeplex.com/ We've used it in a largish MVC project quite happily (I also wish we'd used it in another project as it would have made conditional validation for different clients a breeze

Re: Validation

2014-10-08 Thread Greg Keogh
If you are starting new validation work I'd be taking a good look at this: https://fluentvalidation.codeplex.com/ Yes, I just read through the documentation and it looks clear and lightweight, things I normally desire. I'll bear this in mind for future projects. I have already written some T4

Re: Validation

2014-10-07 Thread Greg Keogh
There is a similar usage of DataAnnotations described in an article at CodeProject - http://www.codeproject.com/Articles/256183/DataAnnotations-Validation-for-Beginner Ta, I eventually stumbled on that one too. For ages I couldn't find anything that actually used the attributes and I thought

RE: Validation

2014-10-07 Thread ILT (O)
To: ozDotNet Subject: Re: Validation There is a similar usage of DataAnnotations described in an article at CodeProject - http://www.codeproject.com/Articles/256183/DataAnnotations-Validation-for-Beginner Ta, I eventually stumbled on that one too. For ages I couldn't find anything

Re: Validation

2014-10-06 Thread Greg Keogh
Finally found a way of using the DataAnnotations. This guy http://aboutdev.wordpress.com/2009/12/20/poor-mans-validation/ points out the Validator http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.validator(v=vs.110).aspx class static methods. The code is a bit weird

RE: Validation

2014-10-06 Thread ILT (O)
=vs.110).aspx ). _ Ian Thomas Albert Park, Victoria From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg Keogh Sent: Tuesday, October 07, 2014 3:58 PM To: ozDotNet Subject: Re: Validation Finally found a way of using the DataAnnotations