public DataSet GetMultiDs(string[] sqlStrings, string[] columnNames, bool isRelation)
{
OpenConn(conn);
ds = new DataSet();
for (int i = 0; i < sqlStrings.Length; i++)
{
oda = new OleDbDataAdapter(sqlStrings[i], conn);
oda.Fill(ds);
}
if (isRelation)
{
for (int i = 0; i < columnNames.Length; i++)
{
dre = new DataRelation(columnNames[i].ToString() + "约束", ds.Tables[i].Columns[columnNames[i]], ds.Tables[i + 1].Columns[columnNames[i]]);
ds.Relations.Add(dre);
}
}
CloseConn(conn);
return ds;
}
出现无法找到表1 的错误 帮帮忙了