Unable to cast object of type '<JoinIterator>d__61`4[System.Data.DataRow,System.Data.DataRow,System.Int32,<>f__AnonymousType0`1[System.Int32]]' to type 'System.Collections.Generic.IEnumerable`1[System.Data.DataRow]'.
var query = MyDataSet.Table1.AsEnumerable().Join(MyDataSet.Table2.AsEnumerable(), table1 => table1.Field<Int32>("Table1_Id"), table2 => table2.Field<Int32>("Table1_Id"), (table1, table2) => new { Table1ID = table1.Field<Int32>("Table1_Id") //Other parameters commented out to simplify the example });
IEnumerable<DataRow> query = (IEnumerable<DataRow>)MyDataSet.Table1.AsEnumerable().Join(MyDataSet.Table2.AsEnumerable(), table1 => table1.Field<Int32>("Table1_Id"), table2 => table2.Field<Int32>("Table1_Id"), (table1, table2) => new { Table1ID = table1.Field<Int32>("Table1_Id") //Other parameters commented out to simplify the example });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)