在asp.net中获取错误:类型或命名空间名称'DataClassesDataContext' [英] Getting error in asp.net : The type or namespace name 'DataClassesDataContext'

查看:624
本文介绍了在asp.net中获取错误:类型或命名空间名称'DataClassesDataContext'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

代码是



DataClassesDataContext datatbl = new DataClassesDataContext();







错误是

无法找到类型或命名空间名称'DataClassesDataContext'(您是否缺少using指令或程序集引用?)

解决方案

您需要在项目中添加引用。

添加>参考> .NET>将System.Data.Linq

code is

DataClassesDataContext datatbl = new DataClassesDataContext();



error is
The type or namespace name 'DataClassesDataContext' could not be found (are you missing a using directive or an assembly reference?)

解决方案

You need to add the reference in the project.
Add > Reference> .NET > System.Data.Linq


这篇关于在asp.net中获取错误:类型或命名空间名称'DataClassesDataContext'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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