This is a migrated thread and some comments may be shown as answers.

Telerik Light-weight DataTable and linq

0 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 15 May 2011, 08:42 PM
Hi,

Can you tell me how to code the following linq query for the lightweight DataTable. AsEnumerable is not supported.  This query works for the Microsoft DataTable.  This is a silverlight app.

Thanks
Rich


IEnumerable<DataRow> query =
                                from row in dataTable.AsEnumerable()
                                where row.Field<String>("SchemaName") == "dbo" &&
                                      row.Field<String>("TableName") == "authors"
                                select row;



No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Richard Harrigan
Top achievements
Rank 1
Share this question
or