New Post: Windows Universal App
The nuget packages should now install for projects that target profile 259. Please give this a try too and let me know.
View ArticleNew Post: IValidator additional property
Ended up getting pretty close to what I wanted by implementing my own types. public interface IEnhancedValidator<T> { IValidatorDescriptor CreateDescriptor(); ValidatorDescriptor<T>...
View ArticleNew Post: MustAsync does not work...
The code you have for MustAsync will work on your unit tests. It will not work in winforms or asp.net. It always deadlocks in asp.net 100% of the time and I have to wrap my call in a run sync type of...
View ArticleNew Post: MustAsync does not work...
Thanks for reporting this. I didn't actually write the async extensions and am not very familiar with them. If you or anyone else with more experience with async code would like to take a look at...
View ArticleCommented Issue: FluentValidationModelMetadataProvider not setting...
For example,RuleFor(q => q.Name).NotNull().WithMessage("Name is required");should, in my opinion, set the IsRequired property. This is important to me because I use that property to see if I should...
View ArticleNew Post: MustAsync does not work...
1) You cannot call async code from a constructor. This means we have to force it non-async by using a method like I reported, or put it in some delegate that you call later. (Ideally the rules would...
View ArticleNew Post: MustAsync does not work...
Yes, you could definitely put the rules in a separate method - you could either call this manually before invoking Validate, or override AbstractValidator.Validate and put the call to BuildRules in...
View ArticleCommented Issue: FluentValidationModelMetadataProvider not setting...
For example,RuleFor(q => q.Name).NotNull().WithMessage("Name is required");should, in my opinion, set the IsRequired property. This is important to me because I use that property to see if I should...
View ArticleNew Post: IValidator additional property
I'm glad you found a solution that works for you - thanks for sharing it. Jeremy
View ArticleNew Post: Specifying name of non-existing RuleSet
Hi! I am trying to use RuleSets for different operations on my domain objects. E.g. one RuleSet for the "Insert"-operation, another for the "Update"-operation plus some common Rules without RuleSet...
View ArticleNew Post: Validation Dynamically Added Rows
I was wondering if it is possible to validate fields when they are dynamically added. I have a web form that will have multiple dynamically added row in HTML tables. For example, I have a drop-down...
View ArticleNew Post: Validation Dynamically Added Rows
FluentValidation is designed to validate properties on objects, it isn't really tied to any particular UI technology. So long as you can represent your data in an object form (or as a collection of...
View ArticleCreated Unassigned: Possible GreaterThanOrEqualToValidator Bug in Version 5.5...
Today, we updated to the latest version of the Fluent Validation NuGet package (5.5) from 30/10/2014 and it seems to have introduced a bug into out web application when using GreaterThanOrEqualTo.In...
View ArticleNew Post: FluentValidation not working on form submit when JavaScrip is disabled
Modelpublicclass UserViewModel { public String Email { get; set; } public String PhoneNumber { get; set; } public String FullName { get; set; } public String CompanyName { get; set; } }Validation...
View ArticleNew Post: FluentValidation not working on form submit when JavaScrip is disabled
Hi This isn't actually related to FluentValidation. FluentValidation doesn't provide any client-side validation of it's own, it only makes use of what is already built into ASP.NET MVC, so I'm afraid...
View ArticleNew Post: Exclude validation in complex model
Hi, everyone. Is there a way to exclude validation of child objects, if I want to validate only parent in code like this: [Validator(CustomerValidator)] class Customer { ... }...
View ArticleCreated Unassigned: ShouldHaveValidationErrorFor not working for collection...
Imaging the following rule:RuleForEach(command => command.Recipients) .Length(9, 15) WithMessage(Resources.ValidationMessages.SmsMessageRecipientInvalidLength);The Recipients property is defined as...
View ArticleEdited Unassigned: ShouldHaveValidationErrorFor not working for collection...
Imaging the following rule:```RuleForEach(command => command.Recipients) .Length(9, 15) WithMessage(Resources.ValidationMessages.SmsMessageRecipientInvalidLength);```The Recipients property is...
View ArticleNew Post: Check that entity exists before Update or Delete
Hi guys, how can I check that entity itself exists before executing Update or Delete? I tried using something like the code below, but getting an error "Property name must be specified". How to...
View ArticleNew Post: is possible to implement IoC container for desktop applications in DDD
I'm trying to implement what is said in this post:http://www.jeremyskinner.co.uk/2010/02/22/using-fluentvalidation-with-an-ioc-container/ but do not know how to adapt to a desktop application, in...
View Article