Entity framework support for MySql unsigned decimal

孤人 提交于 2020-01-06 14:53:46

问题


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.



来源:https://stackoverflow.com/questions/34566718/entity-framework-support-for-mysql-unsigned-decimal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!