无法找到使用将System.Data.Linq [英] Cannot find using System.Data.Linq

查看:650
本文介绍了无法找到使用将System.Data.Linq的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#,在asp.net 4和VS 2010 EF 4。

I'm using C#, EF 4 in asp.net 4 and VS 2010.

我试图加载命名系统。 Data.Linq 这段代码使用System.Data.Linq程序
和我收到此错误:

I'm trying to load namespace System.Data.Linq with this code using System.Data.Linq and I receive this error:

Error   2   The type or namespace name 'Linq' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)    

任何想法,我做错了。
感谢您的帮助!

Any idea what I'm doing wrong. Thanks for your help!

推荐答案

右键点击你的解决方案/项目。点击添加引用,搜索将System.Data.Linq并添加引用那里,它应该编译。

Right click your solution/project. Click Add Reference and search for System.Data.Linq and add the reference there and it should compile.

这篇关于无法找到使用将System.Data.Linq的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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