English 中文(简体)
进口和使用准则的参考资料
原标题:Imports and references required to use LINQ

我以前从未使用过LINQ,我正在申请中使用这个编号。 这是VB。 2008年视觉演播室网络项目(NET 2.0)。

这里是犯罪法典:

Dim orderedRows = From r In resultRows Order By r.FIELDNAME Select r

这里是错误(名称改为通用名称,但以其他方式准确):

Expression of type  1-dimensional array of 
Company.OurLibrary.FunctionalArea.Library.StoredProcStuff.USP_MYPROC.ResultRow 
is not queryable. Make sure you are not missing an assembly
reference and/or namespace import for the LINQ provider.
C:projectfilename.vb

因此,我承认,我需要进口LINQ图书馆:。 这一链接导致我添加“港口系统”。 Linq”在档案中,但这是一个尚未解决的参考资料。 基于同样的联系,我表示,我需要增加提及“系统”。 我的项目的核心内容是,但在我试图增加参考(也已经检查过)时,它不被列为可供选择的方案。

我确信,我不知什么基础。 谁能把我引向正确方向?

TL;DR:我需要哪些准则才能工作?

最佳回答

最新信息:根据针对目标的评论意见。 NET 2.0和尝试使用系统。 林克将产生以下汇编错误:

Namespace or type specified in the Imports System.Linq doesn t contain any public member or cannot be found.

为了改变目标框架版本,将“财产”——“和”项目; Compile->“先进能力选择......”确定目标框架为“.NET Framework 3.5”和“再兼容”。

在使用的情况下。 NET 3.5是不可行的,因此,你可以使用LINQBridge,在瞄准0.NET 2.0框架时使用LINQ。

问题回答

暂无回答




相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签