如何在 .NET Core 中实现 RequiredIf 条件操作以进行基于模型的验证。
在 ASP.NET MVC 中,曾与 ExpressiveAnnotation 包一起使用,但它不适用于 .NET Core。
最佳答案
UoN.ExpressiveAnnotations.NetCore 是用于 .NET Core 应用程序的包,其功能与用于 MVC 的 ExpressiveAnnotation 包相同
引用网址:https://github.com/uon-nuget/UoN.ExpressiveAnnotations.NetCore
关于asp.net-core-2.1 - .net Core 中的 RequiredIf 条件属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60873755/