更新您的EDMX,以反映在您的数据库所做的更改(.NET的LINQ到实体) [英] Updating your edmx to reflect changes made in your db (.net linq-to-entities)

查看:151
本文介绍了更新您的EDMX,以反映在您的数据库所做的更改(.NET的LINQ到实体)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 所以,我有我的EDMX进行。
  • 然后我改变我的数据库一点点,从一个NOT NULL来允许空值更改列。
  • 在我进入我的EDMX,右击并选择从数据库更新模式

现在我进入我的程序和它未实际更新...我不能把一个空列。什么我必须做的正确更新EDMX?谢谢你。

Now I go into my program and it hasnt actually updated... I can't put a null in the column. What do I have to do to update the edmx properly? Thank you.

推荐答案

选择从数据库的更新模式是更新EDMX的最好方法。有一定的属性没有得到更新的概念层上。

Choosing the Update Model from Database is the best method for updating your EDMX. There are certain properties that don't get updated on the Conceptual layer.

请确保您的存储层已被更新,通过查看它在模型查看器工具箱。如果商店已被适当地更新,那么你没事,你的数据库是同步的。如果是这样,进入可视化设计器,单击该字段,在属性,并更新概念侧NOTNULL属性。

Ensure that your Store layer has been updated by viewing it in the Model Viewer toolbox. If the Store has properly been updated then you're okay, and your database is in sync. If so, go into the visual designer, click the field, go to properties, and update the NotNull property on the Conceptual side.

这篇关于更新您的EDMX,以反映在您的数据库所做的更改(.NET的LINQ到实体)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆