Base solution for your next web application
Open Closed

How to add a validation rule? #5854


User avatar
0
luqc1985 created

Hi, I have two properties A and B. I want to verify the rules of B when A is true. What should I do in my entity class? Thanks,


4 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team
  • User Avatar
    0
    luqc1985 created

    If I need to use the SettingManager when I use ICustomValidate validation in inputDto, what do I need to do?

  • User Avatar
    0
    aaron created
    Support Team

    Resolve using context.IocResolver.

  • User Avatar
    0
    luqc1985 created

    Thank you. That solved it...