我想使用微软的示例数据库AdventureWorks2008R2 ...当我尝试创建ADO.NET实体数据模型我得到这个错误:的AdventureWorks不能创建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这就是我得到它的地方)
或者有人可以指向一个示例数据库,我可以下载和使用实体框架。
你们是不是要做到这一点使用SQL Express的一个基于文件的连接字符串? –