我正在尝试使用微软的示例数据库AdventureWorks2008R2... 当我尝试创建ADO.NET实体数据模型时,我遇到了这个错误:
Unable to generate the model because of the following exception: 'The table 'C:\USERS\XXXX\DOCUMENTS\VISUAL STUDIO 2010\PROJECTS\ANOTHERWORKS\ANOTHERWORKS\APP_DATA\ADVENTUREWORKS2008R2_DATA.MDF.Production.Document' was referenced by a relationship, but was not found.'.
Loading metadata from the database took 00:00:06.2308687.
Generating the model took 00:00:04.5808698.
Added the connection string to the Web.Config file.
Successfully registered the assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the Web.Config file.
Writing the .edmx file took 00:00:00.0015898.
有人遇到并解决了这个问题吗?或者知道我可以下载一个工作版本的这个数据库的地方(除了:http://msftdbprodsamples.codeplex.com/releases/view/59211,那是我得到它的地方)
或者有人可以指向一个示例数据库,我可以使用实体框架进行下载和使用。