【发布时间】:2020-03-26 18:20:40
【问题描述】:
如何在 .NET Core 中实现 RequiredIf 条件操作以进行基于模型的验证。
在 ASP.NET MVC 中,曾与 ExpressiveAnnotation 包一起使用,但它不适用于 .NET Core。
【问题讨论】:
标签: asp.net-core-2.1 .net-core-3.0 model-validation expressiveannotations
如何在 .NET Core 中实现 RequiredIf 条件操作以进行基于模型的验证。
在 ASP.NET MVC 中,曾与 ExpressiveAnnotation 包一起使用,但它不适用于 .NET Core。
【问题讨论】:
标签: asp.net-core-2.1 .net-core-3.0 model-validation expressiveannotations
UoN.ExpressiveAnnotations.NetCore 是用于 .NET Core 应用程序的包,其功能与用于 MVC 的 ExpressiveAnnotation 包
参考网址:https://github.com/uon-nuget/UoN.ExpressiveAnnotations.NetCore
【讨论】: