Quantcast
Channel: Fluent Validation for .NET
Browsing all 1917 articles
Browse latest View live
↧

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 Article


New 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 Article


New 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 Article

New 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 Article

New 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 Article


New 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 Article

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 Article

New 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 Article


Source 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 Article


Source 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 Article

Commented 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 Article

Closed 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 Article

Source code checked in, #905f5bae0cd5f7ad007defa62939ac21f2b7df0e

Update changelog

View Article


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 Article

Commented 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 Article


New 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 Article

New 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 Article


New 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 Article

New 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 Article

New 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
Browsing all 1917 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>