|
|
1
8
我对json使用自定义模型绑定器,如下所示:
然后将其连接到Global.asax.cs,如下所示:
您可以在此处阅读更多关于此的信息: Inheritance is Evil: The Epic Fail of the DataAnnotationsModelBinder
JsonModelBinder应仅用于类型为Product的控制器操作参数。Int32和ClassObject应该返回到DefaultModelBinder。您是否经历了不同的结果? |
|
Sweepy Dodo · JSON lite的格式化 1 年前 |
|
|
user24242514 · 将嵌套查询字符串请求转换为字典 1 年前 |
|
|
Shane Harley · 通过这些JSON元素进行映射 1 年前 |
|
|
Shane Harley · 将HTML作为JSON字符串的一部分? 1 年前 |
|
|
Matt Miles · 如何将嵌套的JSON转换为数据帧? 1 年前 |