DataTable does not have AsEnumerable

I have problem locating my AsEnumerable extension method in my DataTabe (System.Data). Thank god for this post by Angel
(http://blogs.msdn.com/angelsb/archive/2007/02/23/does-not-contain-a-definition-for.aspx)

I was able to find this method once i have added reference to the following assembly.

C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll

Try to do a dummy Build and you should be able to get it.

Comments

after aadiing the reference it works for me

before adding the reference i was getting error on missing refernce in the following items....

thank you


EnumerableRowCollection
AsEnumerable()
benbenbenbenben said…
I had to add "using System.Data;" in order to get this to work.
Unknown said…
Thanks for the post ... saved me some hassle
Johan änna said…
Cheers mate, saved me some trouble!