I think you might need to add System.Data.DataSetExtensions Reference to your project before the AsEnumerable will work.
Stewbob
2010-10-16 14:40:20
I think you might need to add System.Data.DataSetExtensions Reference to your project before the AsEnumerable will work.
While the class holding the extensions is in the System.Data namespace, it's located in an assembly that isn't added to your project by default. Add a reference to System.Data.DataSetExtensions to your project and it should be ok. Remember that, even after you've added the reference, any class that expects to use the extension methods defined in the class will need to have a using statement for System.Data as well.