与实体框架有关。 [英] related to entity framework.

查看:92
本文介绍了与实体框架有关。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的应用程序中使用数据库第一种方法创建的edmx文件。现在我们改变了以前的数据库。现在当将表添加到数据库时表没有出现在表列表中,以便可以从中更新edmx文件。我疯狂地改变web.config和app.config中的旧数据库名称。在app.config中更改名称后,表格出现在列表中但是在尝试将其添加到edmx时(即右键单击并从数据库选项中选择更新模型,然后从表格列表中选择所需的表格)。它没有出现在模型浏览器,实体列表中。



谢谢。

In our applicatin edmx file created using database first approach. now we changed previous database with new one. now whenvever adding table to database that table is not appearing in list of tables so that edmx file can be update from it. i mad changes old database name in web.config and app.config. After changing the name in app.config,table is appearing in list but when trying to add it to edmx(i.e right click and select update model from database option,then selecting required table from table list). It is not appearing in model browser ,entity list.

Thanks .

推荐答案

点击此链接: 如何:在数据库更改时更新.edmx文件(实体)数据模型工具) [ ^ ]
Follow this link: How to: Update an .edmx File when the Database Changes (Entity Data Model Tools)[^]


这篇关于与实体框架有关。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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