Commented Unassigned: New feature request : Track current failures in...
Currently, while executing validation rules, one can not check if any previous failure has happened. My suggestion is extend the validation context to have all current failures. And add the validation...
View ArticleNew Post: WithLocalizedMessage overload with instance of type being validated?
Does the localized message work if you run the rule server-side? Regarding the client-side message, FluentValidation handles placeholders in error messages differently to MVC's client-side validation....
View ArticleNew Post: WithLocalizedMessage overload with instance of type being validated?
Hi Jeremy, thanks for your quick feedback. Well I just tried your suggestion and I did the following on my controller: ReservationValidator rValidator = new ReservationValidator(); ValidationResult...
View ArticleNew Post: Arguments in Validator method
Hi, I need to add arguments in a function Validate(). My rule needs the arguments for reason of the business, example:var validator = new UserValidator(); instance = new MyClass(); .... // Validation...
View ArticleNew Post: Arguments in Validator method
You would either need to pass them in via the validator's constructor, or expose them as properties on the object being validated. Jeremy
View ArticleNew Post: Best practices to invoke validate
I'm confused about what is the best way to call the validator. From within my method of business or outside. example: invoke at controller:var uow = UnitOfWorkFactory.GetInstance(); var userBLL= new...
View ArticleCommented Unassigned: New feature request : Track current failures in...
Currently, while executing validation rules, one can not check if any previous failure has happened. My suggestion is extend the validation context to have all current failures. And add the validation...
View ArticleNew Post: Best practices to invoke validate
It's completely up to you for whatever makes most sense in your scenario. Personally I use it at the view-model level - once my view-model has been populated based on user input, then I use...
View ArticleSource code checked in, #002ee92efecd2fe78f8442af437f00c3168526c8
Merge pull request #24 from stijnherreman/codeplex-issue-7125 Fix for CodePlex issue 7125: Equal does not use the Display Attribute
View ArticleSource code checked in, #89171e50efdc7e07abea4fa92154d371b93e4e8f
Merge pull request #22 from michael-wolfenden/allow_parent_to_be_passed_to_child_collection_validator Allow parent to be passed to child collection validator
View ArticleCommented Issue: Equal does not use the Display Attribute [7125]
```c#[Display(Name = "NewPassword", ResourceType = typeof(Labels))][DataType(DataType.Password)]public string NewPassword { get; set; }[Display(Name = "NewPasswordVerification", ResourceType =...
View ArticleClosed Issue: Equal does not use the Display Attribute [7125]
```c#[Display(Name = "NewPassword", ResourceType = typeof(Labels))][DataType(DataType.Password)]public string NewPassword { get; set; }[Display(Name = "NewPasswordVerification", ResourceType =...
View ArticleCommented Unassigned: New feature request : Track current failures in...
Currently, while executing validation rules, one can not check if any previous failure has happened. My suggestion is extend the validation context to have all current failures. And add the validation...
View ArticleCommented Issue: Equal does not use the Display Attribute [7125]
```c#[Display(Name = "NewPassword", ResourceType = typeof(Labels))][DataType(DataType.Password)]public string NewPassword { get; set; }[Display(Name = "NewPasswordVerification", ResourceType =...
View ArticleNew Post: Best practices to invoke validate
Ok, I get it! But anyway I'll have to validate my business layer. Would not that be redundant? I say this because I have a WCF which will also insert users and I have to validate there too.
View ArticleNew Post: Async Delegate Validation
Hi, I'm looking for async predicate validators, actually .Must() extension does not accept async delegate, is there anything built in? This is usefull when some validation logic should hit the dB....
View ArticleNew Post: Async Delegate Validation
Hi Max A patch for this was literally just submitted the other day - it needs a few things changed but once those are done I'll get it merged in. Jeremy
View ArticleNew Post: Dynamic Form Fields
@Jeremy I want to have range validation in my class that value of my range defined in my classpublic class FieldViewModel { public string FieldName { get; set; } public string FieldValue { get; set; }...
View ArticleNew Post: Dynamic Form Fields
Hi InclusiveBetween only takes hard-coded numbers. You'd need to use a Must rule if you want to access other properties within the object. Jeremy
View Article