gpt4 book ai didi

asp.net-core-2.1 - .net Core 中的 RequiredIf 条件属性

转载 作者:行者123 更新时间:2023-12-02 16:44:39 26 4
gpt4 key购买 nike

如何在 .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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com