Articles : Page 1 of 1
- Filter:
- Di
- 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: 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 [...]...
- 1

