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

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

So currently FluentValidation handles null checks for child properties in different ways, depending on how you've defined the rules.If you're using a child validator (ie RuleFor(x =>...

View Article


Reviewed: 3.4 (Feb 01, 2013)

Rated 5 Stars (out of 5) - This is marvelous!!!! You can not imagine how you have shortened my development work! (Everybody Donate! Donate!)

View Article


New Post: Object not Initialized

Ok so I have a rather interesting issue....I have a model with some properties that are optional (but required in certain cases) this model is a Entity Framework model just for informational purposes...

View Article

New Post: Object not Initialized

HiFirstly, I'd suggest you build a null check into the When clause anyway, as this is quite a sensible thing to have in place.As to why the Navigation property is coming back null, I really can't tell...

View Article

New Post: Object not Initialized

Yeah I am an idiot :) I realized that I was trying to bind a complex object to the HiddenFor helper in MVC which isn't supported. I modified my view to have the properties I needed the data from and it...

View Article


New Post: integrate to asp.net web form (not mvc) for client script auto-gen

is there a way to integrate this into asp.net web form (not mvc) for client side validation? something like auto generate those javascript

View Article

New Post: integrate to asp.net web form (not mvc) for client script auto-gen

Hi No, I'm afraid this isn't supported. Jeremy

View Article

Created Issue: Validator doesn't check target against Null [7123]

Hello,Excuse me, if I'm conceptually wrong but shouldn't validator check that target instance is not null?As far as I can see in code, the check is being made only in explicit IValidator.Validate...

View Article


New Post: Integrate File Validation with Fluent Validation

Hello, I created a FileTypeValidator as follows: public class FileTypeValidator : PropertyValidator { public FileTypeValidator() : base("The file type is invalid") { } protected override Boolean...

View Article


New Post: Integrate File Validation with Fluent Validation

Simplest thing to do would probably add a lookup method to your FileWrap class that takes a FileType enum member and returns the appropriate tuple based on that key. You could then have your FileType...

View Article

Commented Issue: Validator doesn't check target against Null [7123]

Hello,Excuse me, if I'm conceptually wrong but shouldn't validator check that target instance is not null?As far as I can see in code, the check is being made only in explicit IValidator.Validate...

View Article

Commented Issue: Validator doesn't check target against Null [7123]

Hello,Excuse me, if I'm conceptually wrong but shouldn't validator check that target instance is not null?As far as I can see in code, the check is being made only in explicit IValidator.Validate...

View Article

New Post: AutoFac IoC validators Issue

It seems like you guys got this working, when I try to do something similar, Autofac complains about: {"The type 'FluentValidation.AbstractValidator1[T]' is not assignable to service...

View Article


New Post: Database rules

Hello, I'm considering the possibility of creating validation rules that are configurable by an administrative user of my application. Do you have a suggestion to implement this functionality with...

View Article

New Post: Database rules

Hi If you're wanting to define validation rules in the database, then FluentValidation probably isn't the right framework for you I'm afraid. The entire point of FluentValidation is to to define rules...

View Article


Source code checked in, #b7b7c65961c9

Merge pull request #20 from StefanBilliet/master Comparing two nullable properties

View Article

New Post: Handling inheritance

Hi! I started with ServiceStack the last days and reached the validation part today. FluentValidation is a really nice validation lib. I had to test this kind of polymorphism too, but i decided to do...

View Article


New Post: Handling inheritance

Since i am new to this framework, i now noticed this nice snippet in the forum. Instead of registration inside a dictionary, u could use a factory like this:public class StructureMapValidatorFactory :...

View Article

New Post: Database rules

Thank you Jeremy for your feedback

View Article

New Post: Idea for integration

I working with FluentValidation and EF Migrations. Basically the EF Migrations have a class Complex/EntityTypeConfiguration that sets the constraints in the database (Required, Max length etc).Database...

View Article
Browsing all 1917 articles
Browse latest View live


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