Tag Archives: how to update datatable using linq

how to update datatable using linq

By | December 8, 2019

here we will update datatable some/multiple column values using linq as below, dtEmployeeList.Select(string.Format(“[SysId] = ‘{0}'”, id)) .ToList<DataRow>() .ForEach(dr => { dr[“EmployeeLocation”] = strLocation; dr[“Address”] = strAdress; dr[“Salary”] = strSalary; });