Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据表字段如何保存null #112

Open
xiesm opened this issue Feb 21, 2022 · 1 comment
Open

数据表字段如何保存null #112

xiesm opened this issue Feb 21, 2022 · 1 comment

Comments

@xiesm
Copy link

xiesm commented Feb 21, 2022

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

@zgcwkj
Copy link
Contributor

zgcwkj commented Jun 10, 2022

把不能为null的勾去掉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants