I think you are not really updating your table with your code.
Change this part of your code here:
public static DataSet UpdateIncident(int incidentID, DateTime dateClosed,string description)
{
TechSupportDB techSupportDB = new TechSupportDB();
var myConnection = techSupportDB.GetConnectionString();
SqlCommand myCommand = new SqlCommand();
myCommand.Parameters.AddWithValue("@IncidentID", incidentID);
myCommand.Parameters.AddWithValue("@DateClosed", dateClosed);
myCommand.Parameters.AddWithValue("@Description", description);
myCommand.CommandText =
"update Incidents set DateClosed = @DateClosed, Description = @Description where IncidentID = @IncidentID";
myCommand.Connection = myConnection;
SqlDataAdapter myAdapter = new SqlDataAdapter("SELECT * FROM Incidents ORDR BY IncidentId");
DataSet updatedIncidentsDataSet = new DataSet();
myAdapter.Fill(updatedIncidentsDataSet, "Incidents");
myAdapter.UpdateCommand = myCommand;
myAdapter.Update(updatedIncidentsDataSet, "Incidents");
return updatedIncidentsDataSet;
}
You need to specify the tableName that you are updating. In your case that is Incidents
Try:
myAdpter.Update(updatedIncidentsDataSet, "Incidents");
If we don't specify the table name that we are updating the DataAdapter will use the default table name which is "Table"
that's why you are getting Update unable to find TableMapping['Table']