示例#1
0
        public static bool Update(ExcelDataSet.WorksheetsRow row)
        {
            try
            {
                WorksheetsTableAdapter adapter = new WorksheetsTableAdapter();

                adapter.Update(row);
                return(true);
            }
            catch
            {
                throw;
            }
        }
示例#2
0
        public static bool Update(ExcelDataSet.WorksheetsDataTable table)
        {
            try
            {
                WorksheetsTableAdapter tableAdapter = new WorksheetsTableAdapter();

                tableAdapter.Update(table);
                return(true);
            }
            catch (OleDbException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }