在创建实体模型时,出现以下错误。实体模型问题:无法为一个特定表创建模型
Added the connection string to Web.Config.
Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in Web.Config.
ERROR: Unable to generate model because of the following exception: 'Value does not fall within the expected range.'.
Loading metadata from database took 00:00:02.1203632.
Generating model took 00:00:00.8390920.
Writing out the EDMX file took 00:00:00.
所有表正在创建,但BC_States表没有被创建。我无法理解为什么。
这也是我的问题。只是改变了表格,我可以很好地导入表格。 – Ammar 2012-05-16 17:55:27
同样的问题在我的情况。现在解决。 – Jamil 2017-10-24 07:11:43