ExpressiveAnnotations
ExpressiveAnnotations copied to clipboard
AssertThat always ignored
Hello,
I'm having an issue making AssertThat work for me. I want to force the user to select a test result outcome from
Here is a snippet of my view model... `[DisplayName("Pregnancy Test required")] public bool PregnancyTestRequired { get; set; }
[AssertThat("PregnancyTestRequired == true && PregnancyTestResult > 0", ErrorMessage = "Required")]
[DisplayName("Pregnancy Test Result")]
public int PregnancyTestResult { get; set; }`
I'm using version 2.9.6 Any idea what I am doing wrong?
Have you read this? https://github.com/jwaliszko/ExpressiveAnnotations#what-about-the-support-of-aspnet-mvc-client-side-validation