/// <summary>
/// 修改datatable列
/// </summary>
/// <param name="argDataTable"></param>
/// <param name="newid"></param>
/// <returns></returns>
private DataTable UpdateDataTableEvaluation(DataTable argDataTable, string newid)
{
DataTable dtResult = new DataTable();
//克隆表结构
dtResult = argDataTable.Clone();
foreach (DataColumn col in dtResult.Columns)
{
if (col.ColumnName == "age")
{
//修改列类型
col.DataType = typeof(String);
}
}
foreach (DataRow row in argDataTable.Rows)
{
DataRow rowNew = dtResult.NewRow();
rowNew["Id"] = row["Id"];
rowNew["Evaluation"] = row["Evaluation"];
rowNew["Careergoal"] = row["Careergoal"];
rowNew["ResumeId"] = newid;
dtResult.Rows.Add(rowNew);
}
//返回
return dtResult;
}