Entity framework just ignores unsigned decimal column when doing db-first to generate code, since I can't change the data type of the db column to signed, any solution?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Do you need to "enforce" non-negative values? Use a TRIGGER
.
Or, if the values are whole numbers, then use some suitably sized INT UNSIGNED
in place of DECIMAL
.