Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: Comparing 2 dates

$
0
0
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?>'.

Viewing all articles
Browse latest Browse all 1917

Trending Articles



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