62,254
社区成员
发帖
与我相关
我的任务
分享
public class DataSetControl
{
public bool Update(DataSet ds, string table)
{
try
{
SqlConnection conn = new SqlConnection(SqlHelper.ConnectionStringLocalTransaction);
conn.Open();
SqlDataAdapter sda = new SqlDataAdapter();
sda.Update(ds, table);
return true;
}
catch (Exception ex)
{
throw ex;
}
}
}