YiShaAdmin icon indicating copy to clipboard operation
YiShaAdmin copied to clipboard

数据表字段如何保存null

Open xiesm opened this issue 3 years ago • 1 comments

使用EF如何给日期和数值字段保存null数据。保存之前字段已经为null,但是存到数据后自动默认为1970-01-01(日期)或者0(数值字段)。如何解决?

xiesm avatar Feb 21 '22 15:02 xiesm

把不能为null的勾去掉

zgcwkj avatar Jun 10 '22 03:06 zgcwkj