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

New Post: CompositeValidator with client side validation

Apologies for reviving an old discussion but this is the top result on Google for this issue. Would it be possible to achieve this by registering each base validator's rules with the current validator?...

View Article


New Post: Cross domain concerns

I have a unique name rule and for that to work i need access to all the objects in the model.How do I get the objects into the custom rule? Is there a way to raise an "I WANT Validation for this now"...

View Article


Source code checked in, #df5e3df1a5f90792d3516455d3114ecfb74cd61e

Fix errors introduced by lazily loading display name

View Article

New Post: Non-property oriented validation

Hi Using Custom is the best way to do this. Jeremy

View Article

New Post: Validation of object hierarchy

Hi Could you provide more details? What do you mean when you say that you "can't get it to work?" Do you see an error? Perhaps you could post a small code sample of what you're trying to achieve?...

View Article


New Post: Problem creating custom Date Validator

I'm trying to create my own custom date validator, so I can customise the error message shown to the user when the date they have entered is invalid. Yet no matter what I try, the standard error...

View Article

New Post: Problem creating custom Date Validator

Hi I'm guessing you're using asp.net mvc? The message you're seeing isn't actually coming from FluentValidation, but is coming from MVC's model binding process, so trying to change FluentValidation to...

View Article

New Post: Problem creating custom Date Validator

Hi Jeremy, Yes I'm using ASP.NET MVC. Ok that makes sense, I'll do something client-side. Cheers for the great validation library.

View Article


New Post: Unique Value Validation

How was your PropertyValidator code? I'm trying to do this right now! Create a PropertyValidatorpublic class UniqueValidator<T> : PropertyValidator where T: class, IEntity { public...

View Article


New Post: NotEmpty for collection is not working

Very useful. It would be nice if there was a way to infer types. But I believe it is a limitation of language.

View Article

New Post: client side validation for valiator without default constructor

Hi Jeremy, Thanks for this great library. If have a validator without default constructor, but a contructor with enum parameter and IxxxService parameter, my understand to fluent validation is, I...

View Article

New Post: Fake it easy with Fluent Validation

You would have to "fake" your validator. var fakeAccountValidator = A.Fake<FakeAccountValidator>(); then A.CallTo(() => fakeAccountValidator.Validate(A<Account>.Ignored,...

View Article

New Post: client side validation for valiator without default constructor

Hi If you use the AttributedValidatorFactory in conjunction with the [Validator] attribute, then the validators must have a default constructor. If you want to customise the creation of the validator,...

View Article


New Post: Can We Change the Property Value if Error Is generated

Hi Everybody, For Example I have a TextBox for the Amount Field . In which have the User can input numeric or chars. But Characters are invalid input for that. We can check the validation for the...

View Article

New Post: Can We Change the Property Value if Error Is generated

Hi This isn't something that FluentValidation itself can do. FluentValidation just performs validation - it doesn't know anything about the UI. In this case, I'd suggest using some sort of client-side...

View Article


New Post: MVC 4 Integration

Dear Jeremy, thanks for your greate work! I Love it in MVC. Currenly I started a new project based on Web API. As you said in your last post, you planned to support it in WebApi. I want to know when we...

View Article

New Post: MVC 4 Integration

Hi This isn't something that's going to happen at the moment I'm afraid. I did spend some time looking into it, but don't have the time to implement anything further due to the complexity of getting...

View Article


New Post: Unique Value Validation

Jeremy provided the answer by posting the following link'http://fluentvalidation.codeplex.com/wikipage?title=Validators&referringTitle=Documentation&ANCHOR#Predicate If you read the SECOND...

View Article

New Post: Unique Value Validation

Hello TetleyK, I read the second part of the documentation. But as you can see in my code I do not use Must. My goal is to encapsulate all this logic duplicate field in a custom validation. I even try...

View Article

New Post: How to add the Property value with the localizemessage

Hi , I have a model of Customer . I create Required Validation in FirstName . and it's working fine. But I need to show the StoreName in ErrorMessage when FirstName is blank. Message Should be like...

View Article
Browsing all 1917 articles
Browse latest View live


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