Articles : Page 1 of 3
- Filter:
- validation
-
Model Metadata and Validation Localization using Conventions
Jul 1114By default, ASP.NET MVC leverages Data Annotations to provide validation. The approach is easy to get started with and allows the validation applied on the server to “float” to the client without any extra work. However, once you get localization involved, using Data Annotations can really clutter your models. For example, the following is a simple model class with two properties. public class Character { public string FirstName { get; set; } public string LastName { get; set; } } Noth...
-
FluentValidation v3 available
Jun 1125FluentValidation v3 is now available for download. You can grab the binaries from the CodePlex page or by installing it using NuGet: install-package FluentValidation If you want integration with ASP.NET MVC 3, you can install the FluentValidation.Mvc3 nuget package: install-package FluentValidation.Mvc3 For a summary of what’s new in this release, check out the following posts: [...]...
-
FluentValidation v3: Other features
Jun 1125This is part 6 in a series of posts about the new features in FluentValidation v3. Part 1 – RuleSets Part 2 – CustomizeValidatorAttribute Part 3 – ASP.NET MVC validation interceptors Part 4 – Better handling of Nullable Types Part 5 – Conditional validation of collection elements Part 6 – Other Features In addition to [...]...
-
FluentValidation v3: Conditional validation of collection elements
Jun 1117This is part 5 in a post about new features in FluentValidation v3. Part 1 – RuleSets Part 2 – CustomizeValidatorAttribute Part 3 – ASP.NET MVC validation interceptors Part 4 – Better handling of Nullable Types Part 5 – Conditional validation of collection elements FluentValidation has supported validation of collection properties since v1.1. By using [...]...
-
FluentValidation v3: Better handling of Nullable Types
Apr 1129This is part 4 in a post about new features in FluentValidation v3. Part 1 – RuleSets Part 2 – CustomizeValidatorAttribute Part 3 – ASP.NET MVC validation interceptors Part 4 – Better handling of Nullable Types In previous versions of FluentValidation, if you wanted to use any of the comparison validators (GreaterThan, LessThan etc) against [...]...
-
FluentValidation v3: ASP.NET MVC validation interceptors
Apr 1128This is part 3 in a series about new features in FluentValidation v3. Part 1 – RuleSets Part 2 – CustomizeValidatorAttribute Part 3 – ASP.NET MVC Validation interceptors Since ASP.NET MVC 2 was released last year, FluentValidation has had the ability to plug into the MVC validation pipeline using a custom ModelValidatorProvider. However, one of [...]...
-
FluentValidation v3: CustomizeValidatorAttribute
Feb 1104This is part 2 in a series about new features in FluentValidation v3. Part 1 – RuleSets Part 2 – CustomizeValidatorAttribute FluentValidation supports integration with ASP.NET MVC’s validation infrastructure. This allows you to plug FluentValidation into MVC’s model-binding process so that complex types are validated when they are constructed from form/querystring parameters. However, using this [...]...
-
FluentValidation 2.0 now available
Jan 1117FluentValidation 2.0 is now available for download. FluentValidation 2.0 is a fairly major release that supports ASP.NET MVC 3. Highlights include: Support for MVC 3 Support for Windows Phone 7 Better support for client-side validation messages More customizable localization Performance improvements to AttributedValidatorFactory NotEmptyValidator now works with ICollection instances Numerous other bug fixes Note that [...]...
-
FluentValidation 2.0 Beta 2 now available
Nov 1009FluentValidation 2.0 beta 2 is now available for download. Here are the release notes: Changes since 2.0 beta 1: Updated MVC integration to work with MVC3 RC Removed the v1.1 backwards compatibility layer. If you’re still using old-style custom validators (which were marked as Obsolete since v1.2), you will need to upgrade. Silverlight assembly renamed [...]...
-
FluentValidation 2.0 Beta 1 Available
Oct 1008FluentValidation 2.0 beta 1 is now available for download. This release contains the following changes: Integration with ASP.NET MVC 3 Beta Windows Phone 7 compatibility Performance improvements to AttributedValidatorFactory Bug fixes I’ve also put together NuPack packages for FluentValidation 1.3. From within the Package Manager console you can use the command Add-Package FluentValidation to install [...]...

