Archives
-
Parent – Child in recursive data table with LINQ
If you have a data table which looks like this one below and holds child,parent rows at the same table;
-
Using 2 Tables Joined with LINQ as data source without anonymous cast error in databond method
Yesterday one of our project team member faced a challenge of using an anonymous data that is returned from joining 2 typed data tables with LINQ. The problem is not how to use the data, the problem was how to be able to cast and use the data in Repeater ItemDataBond method without having “<>f__AnonymousType0….” cast error. below is the join query (tables used are typed) :-