Inner Join with Update in Datatable using Linq in C#

dtDummTable.AsEnumerable().Join(NewDisUpdate.AsEnumerable(), dtMst => dtMst["stone_no"], dtChid => dtChid["StoneNo"], (dtMst, dtChid) => new { dtMst, dtChid }).ToList().ForEach(o => { o.dtMst.SetField("orderdiscount", o.dtChid["Discount"]); });

Post a Comment

0 Comments