I would like to ask for help with this for loop which iterates the rows of a DataTable, that I would like to change into a LINQ query to make it faster. Can anyone assist?
for (i = 0; i < ds.Rows.Count; i++) { if ( m.EmailID.Equals ((ds.Rows[i["email"]).ToString())) { if (dsm.Exists(x => x.WorkOrderId == m.WorkOrderId)) { } else { DesktopSupportTicketModel dstm = new DesktopSupportTicketModel() { BranchId = Convert.ToInt32(ds.Rows[i["BranchID"]), StoreName = ds.Rows[i["Storename"].ToString(), Longitude = float.Parse(ds.Rows[i["Longitude"].ToString()), Latitude = float.Parse(ds.Rows[i]["Latitude"].ToString()), Address = ds.Rows[i["Address"].ToString(),}; dsm.Add(dstm) } } } }