• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 745
  • Last Modified:

vb.net linq dtb.AsEnumerable not available

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
0
glenn_r
Asked:
glenn_r
1 Solution
 
glenn_rAuthor Commented:
found that I needed to reference datasetextensions
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now