每次我使用 Merge() 时,我都有以下内容:'不能将类型'void'隐式转换为'System.Data.DataTable'。
你能告诉我我的代码有什么问题吗?
DataRow[] befdvd = toverify.Select("Date < '# " + dvddate + "#'");
DataRow[] aftdvd = toverify.Select("Date => '# " + dvddate + "#'");
foreach (DataRow dr in befdvd )
dr[gl.EX_PRICE] = (double)dr[gl.EX_PRICE] * dvdfact;
DataTable beff = befdvd.CopyToDataTable();
DataTable Aftt = aftdvd.CopyToDataTable();
toverify = beff.Merge(Aftt);
谢谢