实体框架模型 - 不允许我添加某些表 [英] Entity Framework Model - Not allowing me to add certain tables

查看:130
本文介绍了实体框架模型 - 不允许我添加某些表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在通过ADO.Net实体数据模型向导时,我从数据库中选择3个表以添加到我的edmx文件中,并且当文件生成时,只有三个表之一。没有任何错误或警告来解释为什么还没有添加其他表。如果我自己尝试添加一个失败的表,再次,没有任何反应。
我正在使用VS 2010,SQL Server 2008。

Whilst going through the "ADO.Net Entity Data Model" wizard, I select 3 tables from within a Database to add to my edmx file, and when the file is generated only one of the three tables is there. There was no error or warning to explain why the other tables haven't been added. If I try and add one of the failing tables on its own, again, nothing happens. I am using VS 2010, SQL Server 2008.

有关为什么这些数据库表无法创建的任何想法?我意识到这个问题没有太多的细节,但没有太多的细节情况 - 它真的是一个有3个表的数据库,其中2个无法通过向导创建,没有错误。

Any ideas as to why these database tables are failing to create? I realise there isn't much detail to this question, but there isn't much detail to the situation - It really is a database with 3 tables, of which 2 are failing to create through the wizard with no error.

谢谢。

推荐答案

可能是2个失败的表不有一个索引。

It could be that the 2 tables that are failing do not have an index.

此外,如果您在记事本(或其他文本阅读器)中打开edmx文件,那么错误消息可以在那里。

Also, if you open up the edmx file in notepad (or other text reader), the error message is proably in there.

这篇关于实体框架模型 - 不允许我添加某些表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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