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,

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

4 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    aaron created
    Support Team

    Resolve using context.IocResolver.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    luqc1985 created

    Thank you. That solved it...

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)