FluentValidation 1.2 Beta 3 now available
February 14, 2010 – 16:14
FluentValidation 1.2 beta 3 is now available for download.
This release mainly addresses issues from 1.2 beta 2 as well as adds supports for using Conditions (When/Unless) with Child Validators.
As usual, documentation and binaries are on CodePlex and source is on GitHub
4 Responses
If it possible to add defaultvalue rule to your framework for providing default value of data class instead of DefaultValue attribute in ASP.NET MVC.
No – MVC is hard coded to use the DefaultValueAttribute.
I want default value rule because I use POCO template for EF 4.0 for generating all data classes in my database. So it is very unreasonable for creating some duplicate property in partial class to use Default Value attribute. If I rename or delete some column in database, the partial class that contain old property name will be alive.
PS. This is one in my reasons why I use fluent validation.
MVC doesn’t use the DefaultValueAttribute for this purpose – it is only used for default values in action method parameters (see http://www.davidhayden.me/2010/02/default-values-in-aspnet-mvc-action-parameters.html )
If you want to continue this discussion, please create a thread on the FluentValidation forum. Thanks.