Telerik Light-weight DataTable and linq

1 posts, 0 answers
  1. Richard Harrigan
    Richard Harrigan avatar
    235 posts
    Member since:
    Nov 2009

    Posted 15 May 2011 Link to this post

    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;



Back to Top