Commented Unassigned: InclusiveBetween not included in documentation [7210]
InclusiveBetween is not listed in [the documentation](https://fluentvalidation.codeplex.com/wikipage?title=Validators). I had to look at the source code to find the string format arguments. It was...
View ArticleCommented Unassigned: RuleFor/SetCollectionValidator doesn't show up in...
Given types:``` class User{ public int Id { get; set; } public string Name { get; set; }} class Role{ public string Name { get; set; } public IList<string> AllowedOperations { get; set; } public...
View ArticleCommented Unassigned: RuleFor/SetCollectionValidator doesn't show up in...
Given types:``` class User{ public int Id { get; set; } public string Name { get; set; }} class Role{ public string Name { get; set; } public IList<string> AllowedOperations { get; set; } public...
View ArticleNew Post: RuleForEach with Dataset
Hello All, I have a dataset with multiple data rows which need to be validated at runtime. I tried multiple combination with RuleForEach but not having luck. Can someone post an example on how to...
View ArticleNew Post: RuleForEach with Dataset
Hi Are you referring to a typed dataset or an untyped dataset? FluentValidation is designed for validating properties on objects, so if you're using an untyped dataset then FluentValidation isn't...
View ArticleNew Post: Options to make .Equal Case Insensitive
I am using this and it is not working in client side. can you please let me know if this works in client side or do i need to do anything.
View ArticleNew Post: Options to make .Equal Case Insensitive
Hi, no, this is not supported client-side - it is server-side only. Jeremy
View ArticleNew Post: Options to make .Equal Case Insensitive
Thanks! could you please let me know what would be work around to get this sorted in client side? i need it urgently.
View ArticleNew Post: Options to make .Equal Case Insensitive
FluentValidation's client-side support is limited to what MVC provides out of the box. You'd need to write your own client-side validation logic in this case.
View ArticleNew Post: RuleForEach with Dataset
This is untyped dataset. I basically have a dataset of 5 columns. One of the column is Amount. I need to throw validation message if value for any row in the dataset is less than or equal to 0 with...
View ArticleNew Post: RuleForEach with Dataset
Here you go:public class MyValidator : AbstractValidator<DataSet> { public MyValidator() { RuleForEach(dataset => dataset.Tables[0].Rows.Cast<DataRow>()) .Must(row => (row["amount"]...
View ArticleNew Post: Using ShouldHaveValidationErrorFor with SetCollectionValidator
Apologies for cross-posting, but I wanted to see if anyone had additional information on this...
View ArticleNew Post: Using ShouldHaveValidationErrorFor with SetCollectionValidator
Hi ShouldHaveValidationErrorFor doesn't support SetCollectionValidator directly. The usual way I'd do is this to use ShouldHaveChildValidator to test for the presence of the child validator, and then...
View ArticleNew Post: Convention-Based Localization With Branding
This is an excellent answer - just what I was looking for. Well, except for one thing... The Configure() method on the IConfigurable<x,y> interface is private; I can't access it. At least this is...
View ArticleNew Post: Convention-Based Localization With Branding
It's not actually private - it's an Explicit interface impelmentation, meaning you can't access it on the RuleBuilder<T> class directly, only the interface. Provided your extension method is on...
View ArticleNew Post: Convention-Based Localization With Branding
My prior response was based on trying the following code:var options = ruleBuilder.SetValidator(new RegexValidator()) as IConfigurable<PropertyRule, IRuleBuilderOptions<T, TElement>>; I...
View ArticleNew Post: Convention-Based Localization With Branding
Yeah I'll get that removed. I added this years ago...the original reason was that Configure was an 'advanced' method, not part of the public API and as such was hidden from the fluent interface. But...
View ArticleSource code checked in, #40322c0f8b408dda058458ea83dc2b6ccc92cd48
Remove editorbrowsable attribute from Configure
View ArticleNew Post: More than one type of error message (ex: long and short)
Hi! Great job with FluentValidation! So... During development have stumbled in the need to have more than one type of error message for the same RuleFor. For example, a long message and short one...
View Article