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

Commented Issue: Allow passing a Regex object to the...

Sometimes one would like to pass a regex object, possibly to pass RegexOptions, or because the Regex was already built for other reasons. A constructor like the following would be very helpful:```...

View Article


New Post: Dependency Injection Help

I've just started using FluentValidation and really like it so far.I started by using decorators to link my validators to the appropriate classes, but now I want to do some database-related rules....

View Article


New Post: Fluent Validation framework only for server side validation

1. Is Fluent Validation framework only for server side validation ?2. If so then which framework should I use for do client side validation ?3. B'cos MVC Data-annotation does both client and server...

View Article

New Post: Fluent Validation framework only for server side validation

FluentValidation works in a similar way to DataAnnotations. Both are server-side frameworks, but MVC is able to convert a small subset of simple rules into client-side logic (but not for all...

View Article

New Post: Fluent Validation framework only for server side validation

Hi Jeremy,Is that same for FV also (I mean MVC is able to convert a small subset of simple rules into client-side logic) ? 

View Article


New Post: Fluent Validation framework only for server side validation

Yes. Check out this page on the documentation which lists the validators that run on the client: http://fluentvalidation.codeplex.com/wikipage?title=mvc&referringTitle=Documentation Jeremy

View Article

New Post: Fluent Validation framework only for server side validation

Hi Jeremy,Thanks for your quick response.I will check that doc.

View Article

New Post: Fluent Validation framework only for server side validation

Hi Jeremy,Could you explain bit about how to validate client side when we do server side validation logic (either in data annotation or FV) ?I mean behind the scene of this client side validation when...

View Article


New Post: Fluent Validation framework only for server side validation

Your best bet would probably be to take a read of the ASP.NET MVC documentation on validation. This post explains about clientside validation with MVC quite...

View Article


New Post: Fluent Validation framework only for server side validation

Hi Jeremy,Thanks a lot for your clean explanation and useful link.

View Article

New Post: Dependency Injection Help

The best way to approach this is to use an IoC container to automatically instantiate both the validator and its dependency.If you then create a custom validator factory impelementation that uses your...

View Article

New Post: Dependency Injection Help

Ok, thanks for the advice.Something I'll have to look into.And thanks for the amazing library!

View Article

Created Issue: Allow multiple IValidator for a view model w/ validation rule...

I am building an MVC application that will allow things to plug in. One of those things is allow some one to add additional validation to fields beyond what is already configured. I am currently using...

View Article


New Post: Validation rules for Required fields

Hi,I want to validate field according to configurable flag, which describes if field is optional or required. If field is required, then it shouldn't be null or empty. Also this field provides...

View Article

New Post: Validation rules for Required fields

I have figured out where the problem is. Changed the order in the rule and validation behaves as expected:publicclass SampleValidator : AbstractValidator<ValidatableItem> {public...

View Article


New Post: Validation rules for Required fields

HiThe 'When' method applies to *all* the previous rules in the chain, so the final condition that checks for an empty string is being applied to all 3 of the rules. You have a couple of options here....

View Article

New Post: Can you use this validation Framework in WPF MVVM application

Hello,I wonder if you can provide feedback, if you had used this framework on WPF MVVM application.  If you did is there any gotchas you can share?

View Article


New Post: Can you use this validation Framework in WPF MVVM application

I personally haven't used it with WPF. There is no specific WPF integration, but there's no reason that it wouldn't work. However, you'd have to wire up UI notifications for validation failures...

View Article

New Post: Make nested object required when the rule is added for at least one...

I should probably explain what I have in mind.When having classes like these:class SignUpModel { publicstring Name { get; set; }public PhoneModel Phone { get; set; } }class AddressModel {publicstring...

View Article

New Post: Can you use this validation Framework in WPF MVVM application

FluentValidation works with WPF/Silverlight. As Jeremy pointed out, all you have to do is to write the logic to show error messages and a bit of glue to find what rules to check when using this...

View Article
Browsing all 1917 articles
Browse latest View live


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