ExpressiveAnnotations icon indicating copy to clipboard operation
ExpressiveAnnotations copied to clipboard

AssertThat always ignored

Open rct40 opened this issue 5 years ago • 1 comments

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?

rct40 avatar Dec 10 '19 16:12 rct40

Have you read this? https://github.com/jwaliszko/ExpressiveAnnotations#what-about-the-support-of-aspnet-mvc-client-side-validation

b-maslennikov avatar Mar 27 '20 13:03 b-maslennikov