JeremyS wrote:
Yes, I'm aware both dates are nullable. Make sure you're running 3.1. This error only occurs on 3.0 or earlier.Hi JeremyS,
The same scenario i am facing,I follow the above rule which u have mention but i am getting an error. 3.4.6.0 is the version i am using.
Error 3 The type 'System.DateTime?' cannot be used as type parameter 'TProperty' in the generic type or method 'FluentValidation.DefaultValidatorExtensions.GreaterThan<T,TProperty>(FluentValidation.IRuleBuilder<T,TProperty>, System.Linq.Expressions.Expression<System.Func<T,TProperty>>)'. There is no boxing conversion from 'System.DateTime?' to 'System.IComparable<System.DateTime?>'.