开发者

"upgrade model from database" in Entity Framework designer doesn't update nullable for column

开发者 https://www.devze.com 2023-02-05 05:19 出处:网络
I created an edmx from a database. A column had NOT Null property. The I changed it to allowing nulls. Every time I select \"upgrade model from database..\" in the edmx designer, the nullable property

I created an edmx from a database. A column had NOT Null property. The I changed it to allowing nulls. Every time I select "upgrade model from database.." in the edmx designer, the nullable property for that column always stays as false. I have to change it manually.

Is this a bug in the designer in开发者_运维问答 VS 2010?


Yes, it is a bug. See this bug report plus answer on social.msdn


Delete the table in edmx-designer, and add it again in "Update model from database".

0

精彩评论

暂无评论...
验证码 换一张
取 消