Using linq to query a datatable returns the following error: CS0117: \'DataSet1.map DataTable\' does not contain a definition for \'AsEnumerable\'
Project include
I got this error message: 'System.Data.DataTable' does not contain a definition for 'AsEnumerable' and no extension method 'AsEnumerable' accepting a first argument of type 'System.Data.DataTable' could be found (are you missing a using directive or an assembly reference?)
Added
using System.Data;
Added "System.Data.DataSetExtensions" to the References section. It resolved the problem.