ADO.NET实体框架:更新向导未添加新表 [英] ADO.NET Entity Framework: Update Wizard did not add new tables

查看:70
本文介绍了ADO.NET实体框架:更新向导未添加新表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了新表但是当我从数据库中单击更新模型时,没有添加新表。我尝试设置主键和所有,但它也无法工作。当我从数据库中单击更新模型时,在对话框中的添加列中,我选择了表,但没有表中的那些表。因此,当我单击完成时,没有新表被添加到模型中。我不知道为什么我的表没有显示在添加列中。有人知道它有什么问题吗?

I had created new tables but when I click update model from database, the new tables werent added. I tried setting primary keys and all, but it couldnt work too. And when I click the update model from database, in the dialog box, the "add" column, I selected Table but none of the tables stated there. So when I click finish, none of the new tables is being added to the model. I dont know why my tables not shown in the add column. Anyone know what is wrong with it?

推荐答案

我认为他没有收到任何错误信息,所以他不能发一个。



您确定您拥有正确的数据库连接吗?

项目是否与当前数据库或数据库的旧版本相关联?



来自德国的问候

Ralf
I think he didn't get any error message, so he can't post one.

Are your sure, that you have the correct database Connection?
Is the Project connected with the current database or an old version of your database?

Greetings from Germany
Ralf


这篇关于ADO.NET实体框架:更新向导未添加新表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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