vb.net linq dtb.AsEnumerable not available

Posted on 2012-09-10
Medium Priority
Last Modified: 2012-09-10
If I create a new project and trying to set dtb.AsEnumerable in my linq query and it works. In an existing project its underlined in blue and states "is not a memeber of system.data.datatbale". I'm importing system.linq. The only difference is the target .net framework is set to .net 4.0 and the one where it worked was set to .net 4.0 client profile. Tried in my working projet and it works with either framework option.

Dim dtb As DataTable

        dtb = GetTable()

        Dim query =
            From record In dtb.AsEnumerable
            Select record
Question by:glenn_r
1 Comment

Accepted Solution

glenn_r earned 0 total points
ID: 38384091
found that I needed to reference datasetextensions

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question