anjoy8 / Blog.Core

💖 ASP.NET Core 8.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
http://apk.neters.club/.doc
Apache License 2.0
5k stars 1.37k forks source link

master版本 源码上有段Null转换的代码注释了,导致在模型绑定解析阶段有字段为null时出现解析错误。 #345

Closed kingshinewang closed 1 year ago

kingshinewang commented 1 year ago

To Reproduce Steps to reproduce the behavior:

  1. 去掉注释

Screenshots If applicable, add screenshots to help explain your problem. TIT$8I0%_WBF 7(V1U _5Q4

LemonNoCry commented 1 year ago

请注意 如果忽略NULL值 会导致返回json中也会忽略NULL值的属性

NingLiu1998 commented 1 year ago

一般单独在实体类针对性操作,用特性