开发者

Error compiling pre-generated view in VS 2008

I am created pre-generated views for my EDMX using VS 2008, .NET 3.5 and Entity framework.

I have generated using the t4 templates mentioned here and got my mymodel.views.cs file. It's around 40 mb is size.

Added the views.cs file to my web application and my web service. When i build the apps, the webservice would build without any error and i can get the WS to work. But, the build fails in the website with the error

error CS0234: The type or namespace name 'Mapping' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

The System.Data assembly 开发者_开发知识库is referenced in both the projects and the version denotes .NET 2.0. Suspect something trivial i am missing here, but still clueless.

Any pointers would help!


Add a reference to System.Data.Entity.dll, which contains the System.Data.Mapping namespace.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜