我以前从未使用过LINQ,而且我在使用它的应用程序中遇到错误。这是Visual Studio 2008中的VB.NET(.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:\project\filename.vb
所以我认识到我需要导入LINQ库。
This link
引导我将“Imports System.Linq”添加到文件中,但这是一个未解析的引用。基于同一个链接,我想我需要在我的项目中添加对“System.Core”的引用,但是当我试图添加引用时,它并没有列为可用选项(也没有选中)。
我需要什么才能让林肯工作?