LinqDataSource控件出现问题

LinqDataSource控件出现问题

本文介绍了LinqDataSource控件出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究创建数据访问和业务"中的演练"ASP.NET中的逻辑层"在帮助中.一切顺利,直到我将Linq添加到SQL数据中为止 部分.

I was working on the walkthrough on "Creating the Data Access and Business Logic Layers in ASP.NET" in help.  All goes well until I get adding the Linq to SQL Data section.

添加LinqDataSource控件之后,DataContext对象列表中没有TasksDataContext对象.  如果我在ContextTypeName中键入TasksDataContext 控件的属性,然后TasksDataContext出现在DataContext对象列表中,但是当我单击下一步"按钮时,出现以下错误消息:

After adding the LinqDataSource control, the TasksDataContext object is not available in the DataContext objects list.  If I type in TasksDataContext in the ContextTypeName property of the control, then TasksDataContext shows up in the DataContext objects list, but give me the following error message when I click the Next button:

------------------ ---------

Microsoft Visual Studio

------------------ ---------

无法加载类型'ShiftsDataContext'.如果类型位于App_Code文件夹中,请检查其是否可以编译.如果类型位于已编译的程序集中, 请检查项目是否引用了该程序集.

The type 'ShiftsDataContext' could not be loaded. If the type is located in the App_Code folder, please check that it compiles. If the type is located in a compiled assembly, please check that the assembly is referenced by the project.

------------------ ---------

OK 

OK  

 

完成这项工作需要什么?

TIA

Ted

推荐答案

 

谢谢您的发帖!  ;建议您将您的问题发布到一个MS论坛中,

HomeASP.NET Forums » Data Access


这篇关于LinqDataSource控件出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 21:55